title: .htaccess redirect url ending with
body: <p>How can I redirect url's ending with catalogue.php, for example</p>
  
  <blockquote>
    <p><a href="http://www.example.com/catalogue.php" rel="nofollow">http://www.example.com/catalogue.php</a> </p>
  </blockquote>
  
  <p>to</p>
  
  <blockquote>
    <p><a href="http://www.example.com/all" rel="nofollow">http://www.example.com/all</a></p>
  </blockquote>
  
  <p>Not affecting url's like <a href="http://www.example.com/catalogue.php?title=titleName&amp;page=2" rel="nofollow">http://www.example.com/catalogue.php?title=titleName&amp;page=2</a></p>
  
  <p>Tried the following code:</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} /catalogue.php
  RewriteRule ^(.*)$ www.example.com/all/$1 [R=301,L]
  </code></pre>