====== OVH ====== ===== Choisir la version de PHP ===== Déposer un fichier .ovhconfig à la racine du dossier : app.engine=php app.engine.version=5.6 http.firewall=none environment=production app.engine=php app.engine.version=7.0 http.firewall=none environment=production Pour le créer en ligne de commande : echo "app.engine=php app.engine.version=7.0 http.firewall=none environment=production " > .ovhconfig Source : https://www.ovh.com/fr/g1207.configurer-php-web ===== Désactiver Register Globals ===== echo "SetEnv REGISTER_GLOBALS 0" >> .htaccess ===== PHP5 en ligne de commande ===== /usr/local/bin/php.ORIG.5 ===== PHPinfo ===== echo "" > phpinfo.php ===== Forcer HTTPS ===== RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Sauf sur Cloud Web : RewriteEngine On RewriteCond %{ENV:HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]