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
echo "SetEnv REGISTER_GLOBALS 0" >> .htaccess
/usr/local/bin/php.ORIG.5
echo "<?php phpinfo(); ?>" > phpinfo.php
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule>
Sauf sur Cloud Web :
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{ENV:HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule>