<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[passare da http a https]]></title><description><![CDATA[<p dir="auto">Ciao<br />
ho un sito <a href="http://miosito.it" rel="nofollow ugc">miosito.it</a> per il quale ho settato sul server(tramite l'hosting) il certificato https ma il fornitore mi ha detto che non imposta lui il fatto che tutte le pagine siano in https ma devo farlo io. Per fare ciò ho creato poche righe di codice sulla mia home</p>
<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;/head&gt;
&lt;body bgcolor="ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"&gt;
&lt;/body&gt;
&lt;script type="text/javascript" language="javascript"&gt;
    window.location = "https://miosito.it/home.html"
&lt;/script&gt; 
&lt;/html&gt;
</code></pre>
<p dir="auto">ma così facendo la mia pagina principale non è più l'index ma la home.html<br />
C'è un modo per fare tutto nella pagina index in modo tale che poi questa resti anche la pagina principale (con del contenuto) del sito?</p>
]]></description><link>https://dev.connect.gt/topic/206847/passare-da-http-a-https</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 07:54:03 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/206847.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Oct 2014 13:57:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to passare da http a https on Wed, 15 Oct 2014 10:15:41 GMT]]></title><description><![CDATA[<p dir="auto">Ottimo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://dev.connect.gt/post/1175674</link><guid isPermaLink="true">https://dev.connect.gt/post/1175674</guid><dc:creator><![CDATA[mentelibera]]></dc:creator><pubDate>Wed, 15 Oct 2014 10:15:41 GMT</pubDate></item><item><title><![CDATA[Reply to passare da http a https on Wed, 15 Oct 2014 10:06:30 GMT]]></title><description><![CDATA[<p dir="auto">Per ora dai test che ho fatto funziona e fa il redirect in automatico. Se scopro qualcosa di negativo lo scrivo!</p>
]]></description><link>https://dev.connect.gt/post/1175678</link><guid isPermaLink="true">https://dev.connect.gt/post/1175678</guid><dc:creator><![CDATA[pietror]]></dc:creator><pubDate>Wed, 15 Oct 2014 10:06:30 GMT</pubDate></item><item><title><![CDATA[Reply to passare da http a https on Wed, 15 Oct 2014 09:41:46 GMT]]></title><description><![CDATA[<p dir="auto">Bene sono felice, ora non rimane che mettere in pratica quanto emerso. Purtroppo non ho ancora avuto esperienze nell'uso di HTTPS quindi non saprei dare altro supporto.</p>
<p dir="auto">Non mi rimane che augurarti un buon lavoro e facci sapere sui progressi. Ciao.</p>
]]></description><link>https://dev.connect.gt/post/1175673</link><guid isPermaLink="true">https://dev.connect.gt/post/1175673</guid><dc:creator><![CDATA[mentelibera]]></dc:creator><pubDate>Wed, 15 Oct 2014 09:41:46 GMT</pubDate></item><item><title><![CDATA[Reply to passare da http a https on Wed, 15 Oct 2014 09:35:54 GMT]]></title><description><![CDATA[<p dir="auto">beh, direi che a logica non fa una piega</p>
]]></description><link>https://dev.connect.gt/post/1175677</link><guid isPermaLink="true">https://dev.connect.gt/post/1175677</guid><dc:creator><![CDATA[pietror]]></dc:creator><pubDate>Wed, 15 Oct 2014 09:35:54 GMT</pubDate></item><item><title><![CDATA[Reply to passare da http a https on Wed, 15 Oct 2014 09:28:53 GMT]]></title><description><![CDATA[<p dir="auto">Meglio. Tuttavia mi sembra che alcune volte il valore di $_SERVER['HTTPS'] ha l'iniziale maiuscola, quindi potrebbero esserci ulteriori ambiguità. In definitiva per risolvere quest'ulteriore problema del case sensitive farei questa modifica conclusiva:</p>
<pre><code class="language-php">if (strtolower($_SERVER['HTTPS'])!="on" || $_SERVER['SERVER_PORT'] != 443)
</code></pre>
<p dir="auto">Sound good?</p>
]]></description><link>https://dev.connect.gt/post/1175672</link><guid isPermaLink="true">https://dev.connect.gt/post/1175672</guid><dc:creator><![CDATA[mentelibera]]></dc:creator><pubDate>Wed, 15 Oct 2014 09:28:53 GMT</pubDate></item><item><title><![CDATA[Reply to passare da http a https on Wed, 15 Oct 2014 07:56:32 GMT]]></title><description><![CDATA[<p dir="auto">quindi modifico il costrutto if in questo modo?</p>
<p dir="auto">if($_SERVER['HTTPS']!="on" || $_SERVER['SERVER_PORT'] != 443)</p>
]]></description><link>https://dev.connect.gt/post/1175676</link><guid isPermaLink="true">https://dev.connect.gt/post/1175676</guid><dc:creator><![CDATA[pietror]]></dc:creator><pubDate>Wed, 15 Oct 2014 07:56:32 GMT</pubDate></item><item><title><![CDATA[Reply to passare da http a https on Tue, 14 Oct 2014 17:07:13 GMT]]></title><description><![CDATA[<p dir="auto">Ni. Penso che il controllo dovrebbe essere fatto sulla porta tipica del server utilizzata da HTTPS è la 443.<br />
Quindi aggiungerei il predicato con l'operatore OR $_SERVER['SERVER_PORT'] != 443</p>
]]></description><link>https://dev.connect.gt/post/1175671</link><guid isPermaLink="true">https://dev.connect.gt/post/1175671</guid><dc:creator><![CDATA[mentelibera]]></dc:creator><pubDate>Tue, 14 Oct 2014 17:07:13 GMT</pubDate></item><item><title><![CDATA[Reply to passare da http a https on Tue, 14 Oct 2014 16:14:23 GMT]]></title><description><![CDATA[<p dir="auto">Nel frattempo ho inserito questo script, appena dopo il tag html che sembra funzionare, che ne dite?può andare</p>
<pre><code> &lt;?php
	if($_SERVER['HTTPS']!="on") {
		$redirect= "https: //" . $_SERVER['HTTP_HOST'] . "/" . substr($_SERVER['PHP_SELF'],1);
		echo "&lt;script&gt; window.location.replace('".$redirect."') &lt;/script&gt;";
	} 
?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/1175675</link><guid isPermaLink="true">https://dev.connect.gt/post/1175675</guid><dc:creator><![CDATA[pietror]]></dc:creator><pubDate>Tue, 14 Oct 2014 16:14:23 GMT</pubDate></item><item><title><![CDATA[Reply to passare da http a https on Tue, 14 Oct 2014 14:13:26 GMT]]></title><description><![CDATA[<p dir="auto">Ciao PietroR,<br />
per quel poco che ho letto pare che la soluzione sia operare a livello di Apache, e riguardo ciò forse ho trovato un articolo che potrebbe fare il tuo caso: semrush . com / blog / how-to / seo-friendly-migrate-website-http-https-free/</p>
<p dir="auto">Spero possa esserti utile.</p>
]]></description><link>https://dev.connect.gt/post/1175670</link><guid isPermaLink="true">https://dev.connect.gt/post/1175670</guid><dc:creator><![CDATA[mentelibera]]></dc:creator><pubDate>Tue, 14 Oct 2014 14:13:26 GMT</pubDate></item></channel></rss>