title: How to redirect 301 with dynamically generated URL?
body: <p>Before you say do some research, I have an i know how to Redirect with 301.</p>
  
  <p>However this is quite a specific problem.</p>
  
  <p>so I have a Mod Rewrite in effect:</p>
  
  <pre><code>RewriteRule ^/news/article/([^/]*)/$ /news/article.php?title=$1 [L]
  </code></pre>
  
  <p>This outputs the url to /news/article/title/ , however i recently wanted to remove the trailing slash</p>
  
  <p>so the url reads /news/article/title , easily done with this:</p>
  
  <pre><code>RewriteRule ^/news/article/([^/]*)$ /news/article.php?title=$1 [L]
  </code></pre>
  
  <p>However now when someone enters /news/article/title/ 
  
  <p>So my question is there a way to us redirect 301 so when a user enters /news/article/title/ they get directed to /news/article/title</p>
  
  <p>Bare in mind i want this to work for all of the dynamically generated URLs..</p>