Ora il rewrite è giusto, il file test.php è all'indirizzo indicato dal &quot;not found&quot;..<br>Il problema dev'essere un altro, ma onestamente fatico a capire cosa non vada.<br><br>Non ho molta esperienza di Apache su MacOS, anzi diciamo nulla, e inoltre sono abituato ad usare la versione 2.
<br>E' possibile però che il problema nasca dal fatto che effettivamente la directory <font size="3"><span style="font-size: 12px;"><a href="http://localhost/%7Emassimo/prova_rewrite/test.php?id=mondo" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
/~massimo</a></span></font> è già un redirect a /Users/massimo/Sites, Apache potrebbe pensare che si stia cercando di uscire dalla document root, o qualcosa di simile.<br><br>Qui però non ti so aiutare oltre, mi spiace!<br>
<br>Martino<br><br><div><span class="gmail_quote">On 8/16/06, <b class="gmail_sendername">Massimo Sandolo</b> &lt;<a href="mailto:bastilani@email.it">bastilani@email.it</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style=""><br><div><div>Il giorno 16/ago/06, alle ore 10:36, Martino di Filippo ha scritto:</div></div><div><span class="q"><br><blockquote type="cite">La regola che ti ho scritto prevedeva un id numerico, con &quot;mondo&quot; non può funzionare.
<br><br><span>RewriteRule test/([^\.]+)\.html test.php?id=$1<br>dovrebbe andare.<br></span></blockquote><div><br></div></span></div><div><div>sì vero.. ero appena sveglio, avevo letto del d per i numeri ma poi il test l'avevo fatto con la vecchia url :P
</div><div>Cmq&nbsp;<font size="3"><span style="font-size: 12px;">Not Found</span></font></div></div><div><span class="q"><div style="margin: 0px;"><font size="3"><span style="font-size: 12px;">The requested URL /Users/massimo/Sites/prova_rewrite/test.php was not found on this server.
</span></font></div><br></span></div><div><span class="q"><blockquote type="cite"><span>Il file .htaccess è nella stessa directory di test.php vero?<br></span></blockquote><div><br></div></span></div><div><div>sì</div></div>
<div><span class="q"><br><blockquote type="cite"><span>E, per scaramanzia, i permessi sul file test.php sono corretti? Cioè, apache può accedervi?<br></span></blockquote><div><br></div></span></div><div><div>sì se lo richiamo&nbsp;
<font size="3"><span style="font-size: 12px;"><a href="http://localhost/%7Emassimo/prova_rewrite/test.php?id=mondo" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://localhost/~massimo/prova_rewrite/test.php?id=mondo
</a> funziona correttamente</span></font></div><br><blockquote type="cite"><span>Martino</span><br></blockquote><br></div><div>byez</div><div>max</div><br></div>
</div><br>_______________________________________________<br>Tecnica mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tecnica@liste.siena.linux.it">Tecnica@liste.siena.linux.it</a><br>
<a style="border-bottom-style: groove;" onclick="return top.js.OpenExtLink(window,event,this)" href="http://liste.siena.linux.it/cgi-bin/mailman/listinfo/tecnica" target="_blank">http://liste.siena.linux.it/cgi-bin/mailman/listinfo/tecnica
</a><br><br><br></blockquote></div>