Outils pour utilisateurs

Outils du site


wiki:web:html:htaccess

.htaccess

  • force TLS
  • prepend “www”
.htaccess
RewriteEngine On
 
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301]
 
RewriteCond %{HTTP_HOST} !=""
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
wiki/web/html/htaccess.txt · Dernière modification : de franck