0

Before changing in my database, my web/secure/base_url had as value www.foo.com/foo/ and my website loaded successfully. After change to www.foo.com css files are not loaded, I move back to my old value but result It's still the same, no css files are loaded. How can I fix it?

1
  • have you cleared magento cache? Commented May 4, 2014 at 12:22

1 Answer 1

2

If your site was located in foo.com/foo/ and you changed it to foo.com then there are two possible reasons;

One, your site with corresponding styles is located in a sub directory /foo/ and therefore altering the entry to foo.com won't load any styles unless your style sheets erc have been moved to the root level.

Secondly, you must have the trailing slash "/", so any entry in either the http or http fields in the core_config_data table should either be;

www.foo.com/

Or

www.foo.com/foo/

Hope that helps in some way.

Oh, and always clear the cache. Magento relies heavily on cache and I've been caught ou several times with this. Also goes without saying, but back up before making any changes :)

Good luck

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for your reply, after clearing the cache, everything is back in order.
80% of the problems with baseurl changes are fixed by clearing the cache afterwards. 20% are not having file/folder permissions correct so that Magento writes its cache in the system /tmp which leads to the mysterious non-clearable cache (even by manual delete) and the old baseurl settings seemingly remaining more or less permanent.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.