Bonjour à tous,
Le pov débutant que je suis n'a pas réussi à faire marcher correctement l'une ou l'autre des règles suivantes :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 RewriteCond %{HTTP_HOST} ^sousdomaine.domaine.fr(.+)$ RewriteRule ^(.*)$ https://%1/$1 [QSA,R=301,L] RewriteCond %{http_host} ^http://sousdomaine.domaine.fr$ [NC] RewriteCond %{HTTPS} ^.*off.*$ RewriteRule ^(.*)$ http://sousdomaine.domaine.fr/$1 [NC,L,R=301] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ http://%1/$1 [QSA,R=301,L] RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://sousdomaine.domaine.fr/$1 [L,R]
But : rediriger systématiquement http://sousdomaine.domaine.ltd/(...) vers https://sousdomaine.domaine.ltd/(...)
Merci pour votre aide !



Répondre avec citation
Partager