httpd-users mailing list archives

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

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
Beau

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

#This code within Virtual Host
RewriteEngine on
RewriteOptions inherit



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message