diff --git a/README.md b/README.md index 8b05ff9..e6770c4 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ A collection of useful .htaccess snippets, all in one place. I decided to create - [Force non-www](#force-non-www) - [Force HTTPS](#force-https) - [Force HTTPS Behind a Proxy](#force-https-behind-a-proxy) + - [Force HTTP](#force-http) - [Force Trailing Slash](#force-trailing-slash) - [Redirect a Single Page](#redirect-a-single-page) - [Redirect an Entire Site](#redirect-an-entire-site) @@ -78,6 +79,13 @@ RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} ``` +### Force HTTP +``` apacheconf +RewriteEngine on +RewriteCond %{HTTPS} on +RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} +``` + ### Force Trailing Slash ``` apacheconf RewriteCond %{REQUEST_URI} /+[^\.]+$