Suppose you have a Magento Commerce store at:
http://acme.com/store
but you want to change the URL to:
http://acme.com/catalog
There are plenty of articles that give the basics like:
https://docs.nexcess.net/article/how-to-change-magento-base-urls.html
Basically the steps are:
1. Login to admin, go to Configuration -> Web and change the secure and insecure urls.
2. Move the store/ folder to catalog/
3. Clear cache and sessions folders with
1 |
rm -rf var/cache/* var/session/* |
4. Add a rewrite rule in your .htaccess to send traffic from the old path to the new path:
1 2 |
RewriteEngine On RewriteRule ^store/(.*) /moulding-catalog/$1 [R=301,L] |
So far so good but we found several additional steps that might be needed. If compilation is turned on then you may need to do:
1 |
rm -rf includes/* |
Next if you have APC installed in PHP then you may need to restart the web server to clear the APC cache with something like:
1 |
/sbin/service httpd restart |
If you have memcached configured as the cache backend then you’ll also need to restart memcached:
1 |
/sbin/service memcached restart |
Let us know if the comments if you find any other steps that are needed to successfully move magento to a new path.