histoiredunpied/.htaccess

11 lines
251 B
ApacheConf
Raw Permalink Normal View History

2020-02-16 16:44:29 +01:00
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]