Deprecated: Use of MediaWiki\Parser\ParserOutput::getText was deprecated in MediaWiki 1.42. [Called from SMW\MediaWiki\Hooks\OutputPageParserOutput::getParserOutput in /home/jltryoen/www/MediaWiki/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/OutputPageParserOutput.php at line 161] in /home/jltryoen/www/MediaWiki/includes/debug/MWDebug.php on line 386
« Htaccess » : différence entre les versions — La FAQ de JLT

« Htaccess » : différence entre les versions

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 8 : Ligne 8 :


== Redirection suivant le referrer ==
== Redirection suivant le referrer ==
{{syntaxhighlight|lang=txt |code=
{{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]
Ligne 15 : Ligne 15 :


== Redirection du https vers http ==
== Redirection du https vers http ==
{{syntaxhighlight|lang=txt |code=
{{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]

Version du 10 juin 2025 à 20:56

Interdire le parcours des répertoires

ajouter au fichier  .htaccess

Options -Indexes

Redirection suivant le referrer

RewriteCond %{HTTP_REFERER} !^http://www.jltryoen.fr/.*
RewriteRule .* /joom_3.x/index.php [L]


Redirection du https vers http

RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]