I did a search for this, but I can only find answers on how to do this through the admin panel (which I cannot achieve).
I have a live Magento installation that I'm going to do a new development into.
So, I am setting up the development site on a subdomain of the main site URL (http://test.mydomain.com)
The problem that I encountered is that somewhere in the boot block of Mage :: run () the site is redirected to the www subdomain.
I changed the following 2 entries in the database:
mysql> select * from core_config_data where value like '%mydomain.com%'; | config_id | scope | scope_id | path | value | +-----------+---------+----------+------------------------+-------------------------------+ | 2 | default | 0 | web/unsecure/base_url | http://test.mydomain.com/ | | 3 | default | 0 | web/secure/base_url | http://test.mydomain.com/ |
- I also guaranteed that config "local.xml" points to the new dev DB.
- I also deleted all / var / cache
- I also deleted all htaccess subdomain redirects
- I also restarted Apache.
No luck, still redirecting.
What am I missing?
magento
Steven moseley
source share