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?
- have you cleared magento cache?gurudeb– gurudeb2014-05-04 12:22:07 +00:00Commented May 4, 2014 at 12:22
1 Answer
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
2 Comments
/tmp which leads to the mysterious non-clearable cache (even by manual delete) and the old baseurl settings seemingly remaining more or less permanent.