Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
memo:ovh [11/10/2018 17:48] Arnaud Jacqueminmemo:ovh [20/07/2022 18:44] (Version actuelle) – [Forcer HTTPS] Arnaud Jacquemin
Ligne 49: Ligne 49:
 echo "<?php phpinfo(); ?>" > phpinfo.php echo "<?php phpinfo(); ?>" > phpinfo.php
 </code> </code>
 +
 +===== Forcer HTTPS =====
 +
 +<file apache .htaccess>
 +<IfModule mod_rewrite.c>
 +RewriteEngine On
 +RewriteCond %{HTTPS} off
 +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 +</IfModule>
 +</file>
 +
 +Sauf sur Cloud Web :
 +
 +<file apache .htaccess>
 +<IfModule mod_rewrite.c>
 +RewriteEngine On 
 +RewriteCond %{ENV:HTTPS} !on 
 +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] 
 +</IfModule>
 +</file>
 +
  
  • memo/ovh.1539272925.txt.gz
  • Dernière modification : il y a 8 ans
  • de Arnaud Jacquemin