Outils pour utilisateurs

Outils du site


html:htaccess

.htaccess

  1. force TLS
  2. 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]
html/htaccess.txt · Dernière modification: 2018/05/21 17:25 par mitsu