I have the following mod_rewrite rule:
RewriteRule ^home/ home.php [L]
Fairly simple.
When I head to home.php, everything loads fine, but when I head to me.com/home/, the CSS doesn’t load. CSS draws from
lib/css/home.css
which isn’t in the same folder.. To clarify, my structure is:
/htdocs
home.php
/lib
/css
home.css
How can I solve this problem without rewriting my css’s references?
i don’t know if that will help to solve your problem, but i solved it using base href html tag, smth like
< base href=”http://www.domain.com” >
in head section makes all images, css and js files paths relative to http://www.domain.com