Redirecting to Main Site

I have installed a test cs-cart installation on a subdomain on my site but when I try to login into the admin, its re-directing to the main admin.



Which file should I edit to login into the admin section of the subdomain?

What is the location of your sub-domain? If it's “document root” is a sub-directory of your current store, then edit the .htaccess file in that sub-directory and set

RewriteBase: /sub-directory



Also ensure that in config.local.php that you have the http_host and https_host set to the new sub-domain.

[quote name='tbirnseth' timestamp='1351368529' post='147807']

What is the location of your sub-domain? If it's “document root” is a sub-directory of your current store, then edit the .htaccess file in that sub-directory and set

RewriteBase: /sub-directory



Also ensure that in config.local.php that you have the http_host and https_host set to the new sub-domain.

[/quote]



Its document root is a separate folder and not a sub-directory of my current store. The thing is, I have copied my main store files to this sub-domain by following the entire procedure mentioned in this article “CS-Cart Documentation — CS-Cart 4.15.x documentation”. Although this article is meant for a different server but its the same since I am copying to a sub-domain and not a subdirectory.



http_host and https_host are correctly set to the new sub-domain.



I dont know what has gone wrong.

Is it admin only?

Try manually clearing your cache by removing the

var/cache and var/compiled directories and all their sub-folders.

Also clear your browser cookies or try from a different browser.