Hi,
I create a sub-domain and copy a cs-cart website to that sub-domain in separate folder , like /beta
I copy database over either.
And I change
$config['db_name'] = 'xxxx_beta'
$config['http_host'] = 'beta.domain.com';
$config['https_host'] = 'beta.domain.com';
Everything looks fine but when I try go to http://beta.domain.com/admin.php, it redirect me to http://www.domain.com/admin.php.
I check every place I can think of but can't find the issue.
Anyone can help?
Thanks,
David
Verify again the config.local.php file than clear your CS-Cart and browser cache.
Ensure the values in config.local.php are correct:-
$config['http_host'] = 'www.domain.com';
$config['http_path'] = '/beta';
Then empty the “cscart_stored_sessions” database table and delete the cache via FTP in /beta/var/cache/
That should get you back up and running with access to both the main store and the beta store admin panels.
[quote name=‘StellarBytes’ timestamp=‘1378806728’ post=‘168014’] Ensure the values in config.local.php are correct:- ```php
$config[‘http_host’] = ‘www.domain.com’; $config[‘http_path’] = ‘/beta’;
<br />
Hi Stellar,<br />
<br />
I try all the step you mentioned, but still did not work. Not sure if it cause by ssl since when I type [url="http://beta.domain.com/admin.php"]http://beta.domain.com/admin.php[/url][color=#282828][font=arial, verdana, tahoma, sans-serif], it redirect me to [/font][/color][url="http://www.domain.com/admin.php."]https://www.domain.com/admin.php.[/url]<br />
<br />
Also I map the sub-domain to beta folder in the root<br />
like:<br />
/root<br />
/beta<br />
/public_html<br />
So the value [size=3][color=#000000]$config[/color][color=#666600][[/color][color=#008800]'http_path'[/color][color=#666600]][/color][color=#000000] [/color][color=#666600]=[/color][color=#000000] [/color][color="#008800"]'', [/color][/size]not /beta.<br />
<br />
It is odd <img src="upload://6NsJ1i6dTEz64hX1nsujb3m2ygK.gif" class="bbc_emoticon" alt=":confused:"> it did not work. Hope you have a clue.<br />
<br />
<br />
Thanks,<br />
David
What version are you using and how many stores do you have?
—
Valentin
[color=#808080][size=2]part of hungryweb.net[/size][/color]
do you need to change rewritbase in .htaccess?
The issue is fixed by turning ssl setting off since ssl will redirect you to the production domain.
Thank you guys.