I'm trying to hide actual sub-directory from url path using mod_rewrite.
The folder actual name is members and i want users to use area instead.
The code I'm using works but no images or relative stuff is loading. The rule is missing certain parameters. Can you point me in the right direction?
RewriteEngine on
RewriteRule ^area/$ /members/$1
Like I said, code works and index page loads, but all relative images, includes and other don't.
From stackoverflow
-
Don't rewrite existing files:
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
And more likely
RewriteRule ^area/include/(*.)$ /include/$1 RewriteRule ^area/images/(*.)$ /images/$1
Codex73 : This didn't work.Codex73 : Worked. Fine. I had to only include the first two Cond.Codex73 : How can I also make this work: http://www.domain.com/area without the backlashEddy : RewriteRule ^area$ /members/
0 comments:
Post a Comment