m 1 révision importée |
Aucun résumé des modifications |
||
| (4 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
{{#seo:|keywords=.htaccess,WEB}} | |||
{{sommaire à droite}} | {{sommaire à droite}} | ||
== Interdire le parcours des répertoires == | == Interdire le parcours des répertoires == | ||
ajouter au fichier {{File|.htaccess}} | ajouter au fichier {{File|.htaccess}} | ||
{{syntaxhighlight|lang=apache |code= | |||
Options -Indexes | Options -Indexes | ||
}} | |||
== Redirection suivant le referrer == | == Redirection suivant le referrer == | ||
{{syntaxhighlight|lang=apache |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=apache |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]