2015/06/18

How to redirect https request to http for domain ?

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^(www\.)?domainname\.com$ [NC]
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
view raw gistfile1.txt hosted with ❤ by GitHub

No comments:

Post a Comment