httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georges Villot <>
Subject [users@httpd] rewrite + ssl
Date Wed, 29 Nov 2006 16:49:42 GMT

I'm trying to rewrite all HTTP calls to HTTPS, except for the default 
page. So I wrote in the apache config:

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/$ - [S=1]
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]

it works, except that the SSL certificate is sent anyway, what I would 
like to avoid.

thank you in advance for any help,


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