Magento 1.7 – Fix Theme Redirects to Wrong Path for CSS Files

cssmagento-1.7pathsurl

I know this question gets asked A LOT on this forum, but I just cannot get the url to change. I'm working on a test-site to try out a new theme (fortis), and no matter what I do it tries to retrieve the styling files from the old website URL instead of the new one.

What I've tried so far:

  • Change base URL
  • Change secure / unsecure URL
  • Gone through and edited all basic xml files (like local.xml) and replaced the old url with the new one
  • Went through the database to check for old links
  • Spent hours and hours just trying to fix this one thing!

The theme works, it's just this one single problem that it tries to retrieve the styling files from the old url. The path is correct, it's just the base url that is wrong… It really drives me insane that I've changed the base url and for some reason it still tries to get them from the old website… Like… What???

Does anyone have any hints? I'm getting kind of desperate here if you haven't noticed already haha.

Thanks

EDIT: I do not have any caching enabled, and make sure to clear the cache manually anyway just to make sure, but to no avail…

Best Answer

I think I fixed it. I used this SQL query to see all the links in the database:

Select * from core_config_data where value like 'http%';

This shows all the links. Apparently there is a lot of different web/secure and skin urls in the database. I had only changed a few... But now it's fixed!

I hope this query helps someone else.

Related Topic