Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] redirect to url w/query_string ???

Mike Schleif

2008-06-17

Replies: Find Java Web Hosting

Author LoginPost Reply
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 (zipped)
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.