In order to configure Magento to work with a new domain or change its current directory, you can follow either of the two solutions:
If you are able to log into Magento's backend, you can easily modify the base URLs of the site via:
System -> Configuration -> Web (Under the General section) -> Unsecure
There change the Field "Base URL" to the new domain.
System -> Configuration -> Web (Under the General section) -> Secure
Here, the "Base URL" field should either match the site's domain or, if you have purchased a Private SSL certificate for the site, here you should type the https form of the URL of your Magento store.
If you do not have access to the backend anymore, you need to modify the URL within the database.
Click the Browse tab and edit the first two fields:
web/unsecure/base_urlweb/secure/base_url
The last thing you need to do is clear the cache. The Magento cache folder is located in your Magento installation directory > /var/cache. To clear the cache, delete the folder and create it again.
You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!