Link to home
Start Free TrialLog in
Avatar of qwertq
qwertq

asked on

Problem with mod_rewrite.

Need some help with mod_rewrite... Can not seem to get this to work.

RewriteCond %{REQUEST_URI} ^/foo/one|two|three/.+$ [NC]
RewriteRule ^/foo/(a-z)/?$ "/press/$1/bar" [NC]

Trying to say... if someone goes to /foo/(either one, two, or three)/
then go to /foo/x/bar

Perhaps it could all be done without a RewriteCond
ASKER CERTIFIED SOLUTION
Avatar of JamesCssl
JamesCssl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial