Redirecting Port 80 requests to port 443
To redirect requests for port 80 (or HTTP) to port 443 (https),
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
...
0 TrackBacks
Listed below are links to blogs that reference this entry: Redirecting Port 80 requests to port 443.
TrackBack URL for this entry: http://www.megalinux.net/cgi-bin/mt/mt-tb.fcgi/45

Leave a comment