Knowledgebase

How to configure Magento to work with a new domain or change its directory

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_url
web/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!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to resolve the ‘Invalid package identifier provided’ error in Magento?

The Invalid package identifier provided error occurs when there is a problem with the...

How to alter product price in Magento

Altering the price of products in Magento is an easy task. All you need to do is: Login to...

Magento Contact Us Form

A contact us form is available by default in Magento. A link to it can generally be found in the...

Reindex Magento Data via SSH

The fastest way to reindex Magento data is manually via SSH. To reindex the Magento data...

How to add a module in Magento?

Additional functionality is added to Magento via separate modules called extensions. You can...

Copyright © 2013<script>new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());</script>, HostLantern. All Rights Reserved.