/ Published in: Apache
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# 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]