Forum Moderators: phranque
[servername.com...] redirected to [anotherserver.com...]
$P is the IIS variable that I am using to pass the query string, which strips off the? mark which is what I need. I have tried doing a straight 301 redirect permanent with Apache but it passes the? mark along with the query string which doesn't let me set the eid field. One thing I might add is that ACM12345678 is dynamic and the numbers will always change. I tried using the following but it doesn't work. I know that I am messing the syntax up so be gentle with your comments please.
RewriteCondition ^ACM[0-9]*
RewriteRule ^/ACM/?$ [servername.com...]
I am doing this in the httpd.conf file and this is running on a Windows server if that is any help.
Any help would be greatly appreciated.
RewriteCond [b]%{QUERY_STRING}[/b] ^ACM([0-9]+)
RewriteRule ^/ACM/?$ http://www.example.com/arsys/forms/appserver/ACM:ChangeManagement/Defau[b]lt?eid=%1[/b] [R=301,L]
Jim