Mobile app version of vmapp.org
Login or Join
Murray432

: Why would my website suddenly require absolute URLs for CSS? So for months on this site I've had paths to my CSS files that look like: /css/syles.css and they've worked fine. Today I updated

@Murray432

Posted in: #Css #Lamp #Path #SharedHosting

So for months on this site I've had paths to my CSS files that look like:

/css/syles.css


and they've worked fine.

Today I updated the file and saw my changes weren't being reflected in the browser. In fact, in the Chrome's Inspector's Network tab the CSS file wasnt even loading.

The only way I could get it to work was by making the path absolute, eg:
www.example.com/css/styles.css

There is no caching service on the host, nothing like Cloudflare and, of course, I cleared my browser cache.

It's not a big deal, but I'm just curious as to why this happened.

Host is your average shared server LAMP stack.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray432

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme