12 lines
289 B
Markdown
12 lines
289 B
Markdown
# HTTPS
|
|
|
|
Virtual Host port 80 - ajouter redirection :
|
|
|
|
```
|
|
RewriteEngine On
|
|
RewriteCond %{HTTP_HOST} !^www\. [NC]
|
|
RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
|
|
```
|
|
|
|
Virtual Host port 443 (créé par Let's Encrypt) : ne pas ajouter de redirection
|