Bonjour à tous,
Je n'arrive pas à finaliser mon htaccess.
Voici mes problématiques :
Tout redirigé sur httpS://WWW.domaine.ltd/
Que ce soit, http://domaine.ltd/ https://domaine.ltd/ ou encore http://www.domaine.ltd/, tout doit arriver sur http://www.domaine.ltd/
Cela au premier niveau, en suite j'ai Un dossier qui ne support pas le https ( des iframes de monitorring en non https,....)
Donc j'essaie de rajouter une règle comme ceci :
https://www.domaine.ltd/monitoring/ -> redirect to http://www.domaine.ltd/monitoring/
Voila où j'en suis :
Là quand je vais sur https://www.domaine.ltd/monitoring/ cela ne redirege pas sur http://www.domaine.ltd/monitoring/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteCond %{THE_REQUEST} !monitoring [NC] RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
Avez vous une idée ?
Partager