Java Mailing List Archive

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

Home » users.httpd »

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

Mike Schleif

2008-06-19

Replies: Find Java Web Hosting

Author LoginPost Reply
Please, advise.

Any ideas how to do this server-side redirect?


* On 2008:06:17:00:11:14-0500 I, Mike Schleif <mds@(protected):
> 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
-
what will you do with 1 Million website visitors?
<http://millionsoffreevisitors.com>
--

Attachment: signature.asc (zipped)
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.