Mailinglist Archive: opensuse (3442 mails)
| < Previous | Next > |
More: POST data must go along with the redirect [apache] mod_rewrite: forcing www. without redirecting.
- From: JW <jw@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Dec 2001 18:04:40 -0600
- Message-id: <5.1.0.14.0.20011212180433.03789eb0@xxxxxxxxxxxxxxxxxxxxxxx>
Hello,
My boss just told me that, in addition to all of the below (which seems to be working, BTW), the post data must get passed along with the redirect.
For example if a bot tries to log in to http://mysendtraffic.com/login.php by posting to it, the post needs to actually end up getting sent to http://www.mysendtraffic.com/login.php _along_with_ it's POST data.
Is this possible?
The redirecting is working fine, but the post data isn't getting sent along with it, so the actual log-in is not taking place :-/
Help, please :-)
At 05:37 PM 12/12/2001 -0600, you wrote:
>Hello,
>
>I'm trying to write a URL that redirects http://mydomain.com/<any_query_string> to http://www.mydomain.com/<any_query_string> without loosing "/<any_query_string>.
>
>i.e. redirect it to www.mydomain.com but send the whole rest of the URL (query strings and all) along with it.
>
>So far (after reading much documentation) I have the following ruleset:
>
>RewriteEngine on
>RewriteCond %{HTTP_HOST} ^centraltexasit\.com [NC]
>RewriteRule ^/(.*) http://www.centraltexasit.com/$1 [R]
>
>It seem to work ok but I'm hoping someone who knows more about URL rewriting then I do would take a look at it to see if I'm missing anything that's going to hurt. basically we are trying to sneak the www. onto the front of the fqdn when they forget to use it, without breaking the rest of the URL, especially since some of the "visitors" are bots that are posting data.
>
>It's not clear to me if I need [L] or not e.g.
>
>RewriteRule ^/(.*) http://www.centraltexasit.com/$1 [L,R]
>
>It doesn't seem like I do, is that correct?
>
>----------------------------------------------------
>Jonathan Wilson
>System Administrator
>
>Cedar Creek Software http://www.cedarcreeksoftware.com
>Central Texas IT http://www.centraltexasit.com
>
>
>
>NetSpace LISTSERV(R) software donated by L-Soft, Inc. http://www.lsoft.com
----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software http://www.cedarcreeksoftware.com
Central Texas IT http://www.centraltexasit.com
My boss just told me that, in addition to all of the below (which seems to be working, BTW), the post data must get passed along with the redirect.
For example if a bot tries to log in to http://mysendtraffic.com/login.php by posting to it, the post needs to actually end up getting sent to http://www.mysendtraffic.com/login.php _along_with_ it's POST data.
Is this possible?
The redirecting is working fine, but the post data isn't getting sent along with it, so the actual log-in is not taking place :-/
Help, please :-)
At 05:37 PM 12/12/2001 -0600, you wrote:
>Hello,
>
>I'm trying to write a URL that redirects http://mydomain.com/<any_query_string> to http://www.mydomain.com/<any_query_string> without loosing "/<any_query_string>.
>
>i.e. redirect it to www.mydomain.com but send the whole rest of the URL (query strings and all) along with it.
>
>So far (after reading much documentation) I have the following ruleset:
>
>RewriteEngine on
>RewriteCond %{HTTP_HOST} ^centraltexasit\.com [NC]
>RewriteRule ^/(.*) http://www.centraltexasit.com/$1 [R]
>
>It seem to work ok but I'm hoping someone who knows more about URL rewriting then I do would take a look at it to see if I'm missing anything that's going to hurt. basically we are trying to sneak the www. onto the front of the fqdn when they forget to use it, without breaking the rest of the URL, especially since some of the "visitors" are bots that are posting data.
>
>It's not clear to me if I need [L] or not e.g.
>
>RewriteRule ^/(.*) http://www.centraltexasit.com/$1 [L,R]
>
>It doesn't seem like I do, is that correct?
>
>----------------------------------------------------
>Jonathan Wilson
>System Administrator
>
>Cedar Creek Software http://www.cedarcreeksoftware.com
>Central Texas IT http://www.centraltexasit.com
>
>
>
>NetSpace LISTSERV(R) software donated by L-Soft, Inc. http://www.lsoft.com
----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software http://www.cedarcreeksoftware.com
Central Texas IT http://www.centraltexasit.com
| < Previous | Next > |