Home > Magento, Magento Tutorials > Changing base_url in Magento Database

Changing base_url in Magento Database

Posted on: 30th Sep 2009 By: Adam Moss No Comments

It is sometimes necessary to change the base_url value in the Magento database, if for some reason you can’t access the Magento backend. For inexperienced users it can be quite difficult to find. Here’s the process in 3 easy steps:

 1. Find the table core_config_data
You need to edit the field value, you’ll see it contains the domain names as both web/unsecure/base_url and web/secure/base_url.

database table

2. Edit Value Field
You need to replace the two URLs with the new domain name. Click on the pencil icon to do this, and click ‘Go’ (if in PHPMyAdmin) to update.

3. Clear Cache
You can either do this in the Magento backend, or if this is not possible use FTP to clear the contents of the var/cache and var/session folders.

Post A Comment

Your comments:
Enclose code snippets within the appropriate tags: [php][/php]   [js][/js]   [xml][/xml]   [css][/css]   [html][/html]
E.g: [php]<?php echo "hello world"; ?>[/php]

Search Blog

Archives

For the record...

Views & opinions in this blog are those of the individual and do not necessarily reflect those of E-commerce Web Design or the Creare Group.