Commit 54b7c202 authored by xHire's avatar xHire

Redirect to www and https while preserving HSTS

parent 8656b752
# SSH auto redirection from http to https
# SSH auto redirection from http to https and to www
# uncommented on official website:
# RewriteEngine On
#
# RewriteCond %{SERVER_PORT} 80
# RewriteRule ^(.*)$ https://www.peppercarrot.com/$1 [R=301,L]
# RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,QSA,L]
#
# RewriteCond %{SERVER_PORT} 443
# RewriteCond %{HTTP_HOST} ^peppercarrot\.com
# RewriteRule ^(.*)$ https://www.peppercarrot.com/$1 [R=301,QSA,L]
#
# Adapt RewriteBase to the folder name (Eg. on localhost and my peppercarrot subfolder: RewriteBase /peppercarrot/)
# BEGIN -- Pluxml
......@@ -17,4 +23,4 @@ RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(?!feed)(.*)$ index.php?$1 [L]
RewriteRule ^feed\/(.*)$ feed.php?$1 [L]
</IfModule>
# END -- Pluxml
\ No newline at end of file
# END -- Pluxml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment