There may be times when you need to change the URL, or domain name for your Magento website. For example, you may want to change your URL from www.example.com to example.com. In this guide I will show you how to change the URL for your Magento website.
Solution 1:Changing URL in the Dashboard
Step1. Login to your Magento Dashboard,go to System-->Configuration.
Step2. On the next screen click the Web button-->Base URL,update your URL.
Step3. Click the Secure link now.Fill in the Base URL in this section.
Step4. Click the Save Config button in the top right when you are finished. You will then see a message stating "The configuration has been saved."
Solution 2:Changing URL in phpMyAdmin
Step1. Login to Cpanle-->Databases-->phpMyAdmin.
Step2. On the left menu, click the database that is associated wit your Magento website.
Step3. Locate the table ending in core_config_data, and click it.
Step4. In the path column, locate and update the URL in following lines, by clicking the Edit buttons:
Step5. Click the Go button after updating each URL to save your changes.