2007-08-06 23:09:16

Redirect HTTP to HTTPS via ModRewrite

Place the following code in the body of httpd.conf and restart the httpd service:

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

Tags:   linux, web     |    Perm Link:   Redirect HTTP to HTTPS via ModRewrite



James Conner