Posted By

Jacek_FH on 12/01/10


Tagged

redirect ssl https


Versions (?)

HTTP / HTTPS redirection


 / Published in: Apache
 

  1. # redirecting all https traffic to http
  2. RewriteCond %{HTTPS} on
  3. RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L]
  4.  
  5. # redirecting all http traffic to https
  6. RewriteCond %{HTTPS} off
  7. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

Report this snippet  

You need to login to post a comment.