Difference between revisions of "HTTPS Redirection"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
 
 
Line 1: Line 1:
 
To make a webpage redirect from an http request to an https request, add a line to /etc/httpd/conf/httpd.conf like the following:
 
To make a webpage redirect from an http request to an https request, add a line to /etc/httpd/conf/httpd.conf like the following:
  
redirectmatch ^/mail$ https://einstein.unh.edu/mail/
+
<code>redirectmatch ^/mail$ https://einstein.unh.edu/mail/</code>
  
 
This will redirect any request that looks like http://einstein.unh.edu/mail to https://einstein.unh.edu
 
This will redirect any request that looks like http://einstein.unh.edu/mail to https://einstein.unh.edu

Latest revision as of 18:15, 29 May 2009

To make a webpage redirect from an http request to an https request, add a line to /etc/httpd/conf/httpd.conf like the following:

redirectmatch ^/mail$ https://einstein.unh.edu/mail/

This will redirect any request that looks like http://einstein.unh.edu/mail to https://einstein.unh.edu