et's assume that your Magento is configured to work with
www.yourdomain.com and you want to change the domain to
What you need to do is update your Magento Unsecure Base URL and Secure Base URL to use the new domain. To do this, log in to your Magento admin panel and go to
System > Configuration > Web. In the Unsecure section change your Base URL from:
Do the same for the Base URL setting in the Secure section and click Save Config to save the changes.
The last step is to flush the Magento cache. You can then visit your Magento store at the new location.