This is my first approch to the mod_rewrite, and I am felling lucky for finding a forum dedicated to this theme. Nothing less as expected for this mod.
My problem here is that the RewriteCond is not being evaluated as I expected. I need to redirect all traffic from dom1 to dom2, except those trafic in dom1/ss/ which has to be processed as normal.
This is the code:
- Code: Select all
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond REQUEST_URI !^/ss(/.*)
RewriteRule ^(.*) http://dom2.com/$1 [R]
But it does redirect all traffic to dom2, even when http://dom1.com/XXX.xxx is requested
Does anybody know the reason?
I'm actually new to mod_rewrite, and I couldn't find the answer on the net.
Thanks a lot in advance.