Return to Snippet

Revision: 36965
at December 1, 2010 22:48 by Jacek_FH


Initial Code
# redirecting all https traffic to http
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L]

# redirecting all http traffic to https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

Initial URL

                                

Initial Description

                                

Initial Title
HTTP / HTTPS redirection

Initial Tags
redirect

Initial Language
Apache