Forum » » Bugs, Probs ... » » Nous écrire
Posté : 8 mai 2025 à 01:21
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]
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=26999&forum=1