redirect to url w/query_string ???

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

 



I want the URL's similar to the following:

    http://domain.tld
    http://www.domain.tld
    http://domain.tld/
    http://domain.tld/fjlxasdfja

to be redirected to the following URL:

    http://Other_domain.tld/?rid=48830


I have tried -- and failed -- with following:

    RedirectMatch ^/$ http://Other_domain.tld/?rid=48830

    RewriteCond   %{QUERY_STRING} ^(rid=48830)$
    RewriteRule   ^/$ http://www.Other_domain.tld/$1?


NOTE[1]: There is NO query_string in original URL.

NOTE[2]: I have NOT found a way to escape the "?" in the destination
URL.

NOTE[3]: The result is always either "?" replaced with "%" escapes; or,
NO query_string at all.


What am I missing?


-- 
Best Regards,

Mike Schleif
mds resource
877.596.8237

Attachment: signature.asc
Description: Digital signature


[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