httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Schleif <...@helices.org>
Subject [users@httpd] redirect to url w/query_string ???
Date Tue, 17 Jun 2008 05:11:14 GMT
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

Mime
View raw message