
June 4th, 2012, 08:24 PM
|
|
Registered User
|
|
Join Date: May 2012
Posts: 7
Time spent in forums: 3 h 51 sec
Reputation Power: 0
|
|
|
Mod_rewrite messing up relative paths
My current URLs look like this:
foo.com/Articles.php/Article=New_Name
what I want to start using is:
foo.com/Articles/New_Name
the rewrite rule I have is:
Quote: | RewriteRule ^/?Articles/([a-zA-Z_]+)/?$ /Articles.php?Article=$1 [L,QSA] |
It's working except that it appears that all my paths have been screwed up (paths to CSS, javascript, images) as if the file being read is actually in a different directory. I could make all paths absolute throughout the site but I'd rather get it fixed with mod_rewrite. How do I do this? Thanks in advance.
|