Con con .htaccess su apache ho provato e ottenuto solo problemi, eccoli:
Il mio webserver mi consiglia di uare queste righe in .htaccess per forcare HTTP in HTTPS:
RewriteEngine On
RewriteCond %{ENV:SECURE_REDIRECT} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
e usandole pero ricevo solo errore e il sito non si apre.
Poi con queste righe:
# WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:SECURE_REDIRECT} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule ^index\.php$ - [L]
Con chrome, Opera e Firefox, ricevo questo errore:
Found The document has moved cabdrome.com
E con internet explorer questo errore:
This page can’t be displayed
Make sure the web address cabdromecom is correct.
Look for the page with your search engine.
Usando queste righe:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} ^80
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule ^index\.php$ - [L]
Ricevo ancora errore.
Che fare?

Rispondi quotando