|Home | Gallery | Stats | Downloads | Links | Scripts | Fuel Stats | Wiki | RSS|
It doesn't matter if you engineer the "hostile takeover" of a business computer network, write a breakthrough video card driver, host a Linux Help Page or redeem some trapped soul from Microsoft Hell...it is the cumulation and communication of these efforts that drive us forward.-- Ken Starks Add quote.
Changing the domain name on a Magento install requires a few steps to update the site URL in mysql. The procedure should be similar to below.
Update your core_config_data table to edit the two records for web/unsecure/base_url and web/secure/base_url
mysql> update core_config_data set value = 'http://dev.example.com/' where path = 'web/unsecure/base_url'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> update core_config_data set value = 'http://dev.example.com/' where path = 'web/secure/base_url'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0
After this is done delete the contents of WEBROOT/var/cache. The location of the WEBROOT varies depending on how your server is set up.
cd /home/username/public_html/var/ rm -rf ./cache/*
Update any .htaccess redirects you may have added.
That's it, you're done! Open the site in a new browser tab to make sure that everything loads properly.