website logo
Auteur
avatar
nicolas2

Forum » » Bugs, Probs ... » » Nous écrire


Posté : 8 mai 2025 à 01:21 icone du post

voila site opérationnel version 16.4 github héberger lws

https://parcducailly.fr

pajweb je tes fait une redirection automatique http vers https via fichier .htacces, comme cela le site est toujours rediriger sur https et pas de problème de certificat et autre !

code .htaccess


RewriteEngine on
RewriteCond %{HTTP_HOST} (.*\.)?parcducailly.fr [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*\.)?parcducailly.fr [NC]
RewriteRule \.(bmp|dib|rle|emf|wmf|gif|jpg|jpeg|jpe|jif|jfif|pcx|png|tga|tiff|tif)$ - [NC,F,L]
# Redirections https parcducailly.fr
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} ^(?:www\.)?parcducailly\.fr(?:.*)$ [nc]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [redirect=301,L]


🤪
 Message édité par : nicolas2 / 08/05/2025 02:03

Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=26999&forum=1