<?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[URL Rewrite]]></title><description><![CDATA[<p dir="auto">Buon giorno.<br />
Mi servirebbe un aiuto per creare un url rewrite.<br />
Io ho scritto questa regola per il rewrite in .htaccess:</p>
<pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    
    RewriteBase /
    
    RewriteRule ^index.php$                    ./                                [NC,L,R=301]
    RewriteRule ^film_view.php$                ./                                [NC,L,R=301]
    
    RewriteRule ^film$                        ./                                [NC,L,R=301]
    RewriteRule ^film/$                        ./                                [NC,L,R=301]
    RewriteRule ^film/([^-]*)-([^-]*)/$        ./film_view.php?id=$1&amp;title=$2    [NC,L]
    RewriteRule ^film/([^-]*)-([^-]*)$        film/$1-$2/                        [NC,L,R=301]
&lt;/IfModule&gt;
</code></pre>
<p dir="auto">E in file HTML creo questo link:</p>
<pre><code class="language-html">&lt;a href="localhost/film/5-the_dictator/"&gt;Link&lt;/a&gt;
</code></pre>
<p dir="auto">Il problema è che quando clicco sopra il link mi punta alla pagina index.php con questo indirizzo nel browser:</p>
<pre><code>localhost/?id=5&amp;title=the_dictator
</code></pre>
<p dir="auto">Mi serve che punta alla pagina film_view.php con il rewrite che indico nel .htaccess<br />
Come dovrei fare?</p>
]]></description><link>https://dev.connect.gt/topic/176639/url-rewrite</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 03:18:23 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/176639.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Sep 2012 20:16:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to URL Rewrite on Sat, 08 Sep 2012 19:27:00 GMT]]></title><description><![CDATA[<p dir="auto">nessuno che aiuta?</p>
]]></description><link>https://dev.connect.gt/post/1085301</link><guid isPermaLink="true">https://dev.connect.gt/post/1085301</guid><dc:creator><![CDATA[andriy]]></dc:creator><pubDate>Sat, 08 Sep 2012 19:27:00 GMT</pubDate></item></channel></rss>