Posted By

deftonez4me on 03/12/09


Tagged

htaccess apache


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

bahiatronic
Bluewall
rezzz
vali29


Forward http: to https: for SSL


 / Published in: Apache
 

  1. RewriteCond %{SERVER_PORT} !=443
  2. RewriteCond %{REQUEST_URI} ^/register\.php$ [OR]
  3. RewriteCond %{REQUEST_URI} ^/register-success\.php$
  4. RewriteRule ^ https://www.foo.com%{REQUEST_URI} [NS,R,L]

Report this snippet  

You need to login to post a comment.