Aucun résumé des modifications |
|||
| Ligne 1 : | Ligne 1 : | ||
{{#seo:|keywords=.htaccess,WEB}} | |||
{{sommaire à droite}} | {{sommaire à droite}} | ||
== Interdire le parcours des répertoires == | == Interdire le parcours des répertoires == | ||
| Ligne 8 : | Ligne 8 : | ||
== Redirection suivant le referrer == | == Redirection suivant le referrer == | ||
{{syntaxhighlight| lang=text |code= | |||
RewriteCond %{HTTP_REFERER} !^http://www.jltryoen.fr/.* | RewriteCond %{HTTP_REFERER} !^http://www.jltryoen.fr/.* | ||
RewriteRule .* /joom_3.x/index.php [L] | RewriteRule .* /joom_3.x/index.php [L] | ||
}} | |||
== Redirection du https vers http == | == Redirection du https vers http == | ||
{{syntaxhighlight| lang=text |code= | |||
RewriteCond %{HTTP:X-Forwarded-Proto} =https | RewriteCond %{HTTP:X-Forwarded-Proto} =https | ||
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | ||
}} | |||
ajouter au fichier
.htaccess
Options -Indexes
RewriteCond %{HTTP_REFERER} !^http://www.jltryoen.fr/.*
RewriteRule .* /joom_3.x/index.php [L]
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]