lestoitsduval/.htaccess

11 lines
251 B
ApacheConf

Errordocument 404 /404.html
RewriteEngine On
## http -> https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
## www -> no-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]