I am not able to get through with this code...I need to capture the request but with this code I am able to redirect but it cannot find the particular search page.
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /searcha\.php\?name=(www\.)?([^/\ ]+)[^\ ]*\ HTTP/
RewriteRule ^.*$ http://www.mydomain.com/%2? [R=301,L]
can any one tell me what is I am missing??
%{THE_REQUEST}, the [A-Z]+ actually matches "GET" (or "POST", or whatever the request method was) – Brian May 20 '10 at 21:09