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
« Apache » : différence entre les versions — La FAQ de JLT

« Apache » : différence entre les versions

Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<keywords content="Apache,WEB" />
{{#seo:|keywords=Apache,WEB}}
== Redirect https to http ==
== Redirect https to http ==
{{syntaxhighlight |lang=text |code=
{{syntaxhighlight |lang=text |code=
# Redirect HTTPS to HTTP
# Redirect HTTPS to HTTP
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} [R=301,QSA]
}}
== Redirect http to https ==
{{syntaxhighlight |lang=text |code=
# Redirect HTTP to HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA]
}}
}}



Version du 18 septembre 2025 à 08:24