You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Beau Hebert <bh...@c-quential.com> on 2003/05/15 16:34:40 UTC
[users@httpd] HTTP to HTTPS using mod_rewrite
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