httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beau Hebert" <>
Subject [users@httpd] HTTP to HTTPS using mod_rewrite
Date Thu, 15 May 2003 14:34:40 GMT

I've been assigned the task of redirecting all incoming http requests to
https. Problem is, I am not an administrator. I've done a little
research, and it seems that this is possible using mod_rewrite. I've
copied the code that I've come up with below, but doesn't seem to be
working. Can anyone confirm if this should/could work?

Thanks much

<IfModule mod_rewrite.c>
RewriteCond %{SERVER_PORT}           !^443$
RewriteRule ^/(.*)
https://%{SERVER_NAME}/$1 [L,R]

#This code within Virtual Host
RewriteEngine on
RewriteOptions inherit

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