I almost finished my magento site. Now I want to edit my base url since I got the standard: URL. If I try to change my base URL via backend ->System -> Configuration -> Web - secure/unsecure base-url to for example: I'm getting an object not founded! error 404. How can I change my base URL ?


3 Answers 3


In the worst case you can just edit the table core_config_data and fix the url there.

  • Already tried but still doens't work Sep 25, 2015 at 15:14
  • he is changing the default url for the magento site from magento to abc, so this will also require some web server configuration changes.
    – paj
    Sep 25, 2015 at 15:23

You have to rename the magento directory to abc if this should be your base URL.


Before you change your base url, make sure you disable your cache and flush out your cache storage.

If you are using the filesystem as the storage cache (the default) then these commands will empty all the cache folders that might have cached the old url

rm -rf var/cache/*
rm -rf media/css*
rm -rf media/js*

Now change your base url, enable and refresh your caches.

If you change the path from the default root / to something else like /abc you will also either need to edit your web server config to make an alias or rewrite rule for the default magento directory or depending on how you have configured the web server root folder move/rename the magento root folder itself.

You can also try changing the .htaccess rewrite base from / to /abc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.