<?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[redirect 301 con .htaccess]]></title><description><![CDATA[<p dir="auto">Ciao, ho spostato un sito che prima era in asp e l'ho rifatto in php su apache.<br />
Per continuare a fare reperire le pagine dalle vecchie indicizzazioni su google volevo fare il redirect, ma come?</p>
<p dir="auto">Preferieri usare il file .htaccess di apache ma non sto riuscendo a scrivere la regola giusta</p>
<p dir="auto">Se per esempio volessi reindirizzare la pagina <a href="http://www.sito.it/pagina.asp" rel="nofollow ugc">http://www.sito.it/pagina.asp</a> alla nuova <a href="http://www.sito.it/cartella/pagina.php" rel="nofollow ugc">http://www.sito.it/cartella/pagina.php</a> come devo fare?</p>
<p dir="auto">Grazie!</p>
]]></description><link>https://dev.connect.gt/topic/83648/redirect-301-con-htaccess</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 11:57:39 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/83648.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Sep 2008 17:47:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to redirect 301 con .htaccess on Sun, 28 Sep 2008 13:19:04 GMT]]></title><description><![CDATA[<p dir="auto">Prova a creare un file .htaccess in questo modo:</p>
<pre><code>[FONT=Verdana][SIZE=2]
ErrorDocument 206 http://.../[/SIZE][/FONT][FONT=Verdana][SIZE=2]
ErrorDocument 301 [/SIZE][/FONT][FONT=Verdana][SIZE=2]http://.../[/SIZE][/FONT][FONT=Verdana][/FONT][FONT=Verdana][SIZE=2]
ErrorDocument 400 [/SIZE][/FONT][FONT=Verdana][SIZE=2]http://.../[/SIZE][/FONT][FONT=Verdana][/FONT][FONT=Verdana][SIZE=2]
ErrorDocument 403 [/SIZE][/FONT][FONT=Verdana][SIZE=2]http://.../[/SIZE][/FONT][FONT=Verdana][/FONT][FONT=Verdana][SIZE=2]
ErrorDocument 500 [/SIZE][/FONT][FONT=Verdana][SIZE=2]http://.../[/SIZE][/FONT][FONT=Verdana][/FONT]
</code></pre>
<p dir="auto">In alternativa, puoi anche realizzare un redirect in JS:</p>
<pre><code class="language-html">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Redirect&lt;/title&gt;
&lt;/head&gt;
&lt;body onload="javascript: window.location('http://.../')"&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p dir="auto">Ciao!</p>
]]></description><link>https://dev.connect.gt/post/763133</link><guid isPermaLink="true">https://dev.connect.gt/post/763133</guid><dc:creator><![CDATA[sups]]></dc:creator><pubDate>Sun, 28 Sep 2008 13:19:04 GMT</pubDate></item></channel></rss>