Warning: include_once(/home/favoledo/robertozanardo.com/wp-content/sunrise.php): Failed to open stream: No such file or directory in /home/favoledo/robertozanardo.com/wp-includes/ms-settings.php on line 52

Warning: include_once(): Failed opening '/home/favoledo/robertozanardo.com/wp-content/sunrise.php' for inclusion (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') in /home/favoledo/robertozanardo.com/wp-includes/ms-settings.php on line 52
Redirect da HTTPS a HTTP via file HTACCESS - Odoo e Soluzioni Open Source

Redirect da HTTPS a HTTP via file HTACCESS

Anche se è più frequente avere l’esigenza esattamente opposta (qui come fare da http a https), può capitare (magari perchè è scaduto un certificato e si sta attendendo il rinnovo), di dover forzare il redirect da https a hhtp.

Possiamo farlo semplicemente aggiungendo queste righe di direttiva al file .htaccess:

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

Lascia un commento