Rewrite A URL with a Questions Mark

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: http://site.com/iddetail.php?id=88888

What I have tired up to this point:

Rewritecond %{HTTP_HOST} ^site.com [NC]
^(.*)iddetail\.php\?id=([0-9]+)$
https://www.site.com/results.html#/newsite [R=301,NE,L]

The results that I see from this rewrite rules is:
https://www.site.com/?id=8888

I have also tried:
Rewritecond %{HTTP_HOST} ^site.com [NC]
^(.*)iddetail\.php$ https://www.site.com/results.html#/newsite [R=301,NE,L]

The result is: https://www.site.com/results.html#/newsite/?id=8888

Any help with this would be apprehended.

Thank You,

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux