title: htaccess redirection do wrong page direction
body: <p>this my htaccess code :</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt; 
  Options +FollowSymLinks 
  RewriteEngine on
  
  RewriteCond %{THE_REQUEST} ^(GET|HEAD|POST)\ /Songs/Songs\.php\?movie=([^&amp;\ ]+)([^\ ]*)
  RewriteRule ^/Songs/%3?%4 [L,R=301]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^/?Songs/(.*)$ /Songs/Songs.php?movie=$1 [L,QSA]
  
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>It is redirecting perfectly like</p>
  
  <p>From </p>
  
  <pre><code>localhost/Songs/Songs.php?movie=anymovie-2012
  </code></pre>
  
  <p>To</p>
  
  <pre><code>localhost/Songs/anymovie-2012
  </code></pre>
  
  <p>But when I tried  </p>
  
  <pre><code>localhost/Songs/&lt;anytext&gt;
  </code></pre>
  
  <p>For eg. </p>
  
  <pre><code>localhost/Songs/test
  </code></pre>
  
  <p>then it also called songs.php instead of throwing page not found error.</p>
  
  <p>how to throw Page not Found Error if last keyword is not present in database.</p>
  
  <p>For solution,</p>
  
  <p>should I need to code in songs.php file or in .htaccess file and what type of code I need to do?</p>