Page is a not externally linkable
hottrout - 5:13 pm on Feb 5, 2013 (gmt 0)
I have dony many Rewritecond rules before but for the life of me I can not figure out why this one will not trigger.
The url I want to catch is this
http://www.example.com/files/index.php?folder=M/IPHONE/(what ever comes next)
I want to 301 it to
http://www.example.com/files/index.php?folder=M/IOS/(what ever comes next)
The code I am using is
RewriteCond %{THE_REQUEST} ^files/index\.php\?folder\=M/IPHONE([^\ ]+)\ HTTP/
RewriteRule ^files/index\.php http://www.example.com/files/index.php?folder=M/IOS/%1 [R=301,NC,L]
------------------
I am most likely doing something very stupid but for the life of me I can't see it. I have been looking at it too long to be honest.