httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Geilman <>
Subject Re: [users@httpd] RewriteRule acts differently for different browsers
Date Mon, 25 Jul 2011 21:07:30 GMT
On 2011-07-25 22:49, James Moe wrote:
> Hash: SHA1
> On 07/25/2011 12:14 PM, Jeroen Geilman wrote:
>> You should not use rewriting for this, it is entirely unnecessary
>> and only adds complexity. Instead, you add a new vhost for
>>, and do a blank redirect to HTTPS.
>    The ISP for our site has a<>  URL "built-in." That
> is, I cannot create one since it already exists outside of my control.
>> I suspect that the above is using the highly dubious VirtualHost *
>> construct, which should die and burn in hell. If so, you are not
>> taking into account the possibility that the request is coming in
>> over HTTPS. Add another rewritecond that checks for it.
>    Okay. I changed the rule to
> RewriteEngine on
> RewriteCond %{HTTP_HOST}
> RewriteCond %{SERVER_PORT} =80
> RewriteRule ^(.*)$$1 [R,L]
>    Now no redirection occurs at all for any browser.
> Later:
>    Now it is working as expected for all browsers I have tested. I do not
> know what changed in the intervening half hour.

Browser caches expired.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message