title: .htaccess remove trailing slash after file extension
body: <p>I have some external links to my site that referrer to pages with a file extension and a trailing slash after that e.g.</p>
  
  <p><a href="http://example.com/folder/page.php/" rel="nofollow">http://example.com/folder/page.php/</a></p>
  
  <p>I can not change these links, but I would like to 301 redirect those links to this format instead:</p>
  
  <p><a href="http://example.com/folder/page/" rel="nofollow">http://example.com/folder/page/</a></p>
  
  <p>I've tried this, but it doesn't work:</p>
  
  <pre><code>RewriteRule ^(.*)\.php\/$ /$1/ [R=301,L]
  </code></pre>
  
  <p>Any help is appreciated.</p>