<?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[Problema indiciazzione url con https]]></title><description><![CDATA[<p dir="auto">Salve a tutti</p>
<p dir="auto">volevo chiedere un consiglio, ho un sito web in wordpress che indicizza sia pagine in http che in https.</p>
<p dir="auto">c'è un modo per evitare che le pagine in https vengano indicizzate?</p>
<p dir="auto">Andrea</p>
]]></description><link>https://dev.connect.gt/topic/191177/problema-indiciazzione-url-con-https</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 03:15:24 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/191177.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Jul 2013 12:30:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problema indiciazzione url con https on Tue, 02 Jul 2013 13:57:21 GMT]]></title><description><![CDATA[<p dir="auto">grazie della risposta provo una di queste soluzioni</p>
<p dir="auto">Andrea</p>
]]></description><link>https://dev.connect.gt/post/1130372</link><guid isPermaLink="true">https://dev.connect.gt/post/1130372</guid><dc:creator><![CDATA[andreku]]></dc:creator><pubDate>Tue, 02 Jul 2013 13:57:21 GMT</pubDate></item><item><title><![CDATA[Reply to Problema indiciazzione url con https on Tue, 02 Jul 2013 13:37:34 GMT]]></title><description><![CDATA[<p dir="auto"><strong>PHP</strong><br />
Se hai un header comune in un file PHP, aggiungi il seguente codice tra le tag &lt;head&gt; &lt;/head&gt;:</p>
<p dir="auto">&lt;?php<br />
$_SERVER['HTTPS'] = ($_SERVER['HTTPS'] ? $_SERVER['HTTPS'] :"");<br />
if ($_SERVER['HTTPS'] != "") {<br />
&lt;meta name="robots" content="noindex, nofollow" /&gt;};<br />
?&gt;</p>
<p dir="auto"><strong>ASP</strong><br />
come sopra, con i file ASP aggiungi tra le tag HTML &lt;head&gt; &lt;/head&gt;<br />
&lt;%<br />
If (Request.ServerVariables("HTTPS") = "on") Then<br />
response.Write("&lt;meta name='robots' content='noindex, nofollow'&gt;")<br />
else<br />
response.Write("&lt;meta name='robots' content='index, follow'&gt;")<br />
end if<br />
%&gt;</p>
<p dir="auto"><strong>.htaccess</strong><br />
Nota questo funziona solo con i server Apache. Dando per assunto che hai già un file robots.txt file, creane un secondo, dandogli un diverso nome, robots_https.txt per esempio. In questo nuovo file robots_https.txt digita quanto segue:</p>
<p dir="auto">User-agent: *<br />
Disallow: /<br />
Upload this file to the root of the site.<br />
In the .htaccess file add these three lines<br />
RewriteEngine on<br />
Options +FollowSymlinks<br />
RewriteCond %{SERVER_PORT} ^443$<br />
RewriteRule ^robots.txt$ robots_https.txt</p>
<p dir="auto">Questo dirà ai crawlers dei motori di ricerca che se la pagina in cui si trovano è una pagina sicura https, di seguire il file robots_https.txt file che non permette ai crawler di accedere a nessuna delle pagine sicure attraverso la linea Disallow: / nel file.</p>
]]></description><link>https://dev.connect.gt/post/1130363</link><guid isPermaLink="true">https://dev.connect.gt/post/1130363</guid><dc:creator><![CDATA[geek]]></dc:creator><pubDate>Tue, 02 Jul 2013 13:37:34 GMT</pubDate></item></channel></rss>