Ovviamente il tuo sito si trova su un server.
Se è uno spazio Linux, si parla di .htaccess, se è un spazio Windows sarà web.config.
Per .htaccess. aggiungi questo codice:
codice:RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Per web.config aggiungi questo:Comunque, strano che non vada direttamente in https.codice:<system.webServer> <rewrite> <rules> <rule name="Force HTTPS" enabled="true"> <match url="(.*)" ignoreCase="false"/> <conditions> <add input="{HTTPS}" pattern="off"/> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent"/> </rule> </rules> </rewrite> </system.webServer>
Dove hai detto che hai il sito?

Rispondi quotando