Sunday, August 19, 2012

Moving magento from subdirectory to root directory

Moving magento from sub directory to root directory require following steps:

  1. Move all files from sub-directory to root directory
  2. Change .htaccess file code:
    Find RewriteBase /subdirectory/ to RewriteBase /
    where subdirectory is the name of your subdirectory e.g. magento
  3. Open phpMyAdmin and run these queries:
    update core_config_data set value='your new store url' where path = 'web/unsecure/base_url';
    update core_config_data set value='your new store url' where path = 'web/secure/base_url';
Note: your new store url must be a url i.e. http://google.com/ with trailing slash.

No comments:

Post a Comment