Skip to content

Commit

Permalink
add: Force HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Jan 17, 2024
1 parent 031993c commit a13ffba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site-root/public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ ErrorDocument 500 /error-500.html
Header add Allow "GET, HEAD"

# Force HTTPS
# RewriteCond %{HTTPS} !=on
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# Header always set Content-Security-Policy "upgrade-insecure-requests;"
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"

# Always remove www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
Expand Down

0 comments on commit a13ffba

Please sign in to comment.