Redirecting Port 80 requests to port 443

| | Comments (0) | TrackBacks (0)

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

About this Entry

This page contains a single entry by Ram Prasad published on July 28, 2004 12:19 PM.

Creating a Swap File was the previous entry in this blog.

RHCE is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by
Movable Type 4.01