-
redirect http to https
salve a tutti, ho attivato https tramite "gestione risorse", inotre ho attivato "Riscrittura automatica link HTTP".
Ho anche modificato il file .htaccess per la redirect di tutte le url http verso https. Però sembra non funzionare. se incollo nel browser http://professioneslot.altervista.org/ non viene eseguita alcuna redirect. Mi potete aiutare?
questo il contenuto del file .htaccess
-----
Codice:
RewriteEngine on
#RewriteCond %{REQUEST_URI} !(\maintenance\.html|\.gif|\.jpg|\.png)$ [NC]
#RewriteRule $ /maintenance.html [R=302,L]
# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /
# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ https://professioneslot.altervista.org/$1?$2 [L,QSA,R=301]
# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404
# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]
# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]
# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]
# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]
# Google SEO URL Users:
RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]
# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]
-
Per forzare il sito in https, vedi qui.
Ciao!
-
grazie, sembra funzionare bene!
pensavo di dover cambiare anche l'indirizzo del forum nella pannello di amministrazione -> Configurazione -> Configurazione generale. ma mettendo https va in errore, lasciando http funziona tutto.