httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnson <>
Subject [users@httpd] Rewrite A URL with a Questions Mark
Date Mon, 03 Nov 2014 23:20:29 GMT
I want to rewrite a URL with a questions mark and I'm having alot of
trouble getting this working.

My requirement is that I have to do a match on the %{HTTP_HOST} first
and from there I need to do a rewrite to a static URL.

URL Request looks like this:

What I have tired up to this point:

Rewritecond %{HTTP_HOST} ^ [NC]
^(.*)iddetail\.php\?id=([0-9]+)$ [R=301,NE,L]

The results that I see from this rewrite rules is:

I have also tried:
Rewritecond %{HTTP_HOST} ^ [NC]
^(.*)iddetail\.php$ [R=301,NE,L]

The result is:

Any help with this would be apprehended.

Thank You,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message