sysadmin42
Technical User
- May 6, 2005
- 138
Here's the rule I created:
That in and of itself actually works fine. Example: changes to index.php?content=samplepage.
The problem is that all of the links and images are wrong. The links are all relative to /docroot/page/samplepage/ They really should be relative to /docroot/. So how do I get the mod_rewrite to rewrite the GET vars, but leave the current directory alone?
"Together we can make 'computer illiterate' a dirty word."
Code:
RewriteRule ^page/([a-zA-Z0-9]*)/ index.php?content=$1
The problem is that all of the links and images are wrong. The links are all relative to /docroot/page/samplepage/ They really should be relative to /docroot/. So how do I get the mod_rewrite to rewrite the GET vars, but leave the current directory alone?
"Together we can make 'computer illiterate' a dirty word."