title: Add slashes and redirect pages with htacess and apache
body: <p>Im trying to make it so everything with news.php in the url gets redirected to a url which strips out the news.php and adds a trailing slash.  So <a href="http://www.example.com/news.php/news/article" rel="nofollow">http://www.example.com/news.php/news/article</a> to <a href="http://www.example.com/news/article/" rel="nofollow">http://www.example.com/news/article/</a></p>
  
  <p>Ive been able to remove the news.php with this</p>
  
  <pre><code>RewriteRule  ^(news|health|tips|weight|P[0-9]{2,8})$ $1/ [NC]
  RewriteCond $1 ^((news|health|tips|weight|P[0-9]{2,8})/) [NC]
  RewriteRule ^(.*)$ /news.php/$1 [L]
  </code></pre>
  
  <p>Ive tried adding a trailing slash to the above line and it does nothing.
  I have also tried the stuff below, which adds a slash but doesnt remove the news.php.</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} !(.*)/$
  RewriteRule ^(.*)$ /news.php/$1/ [R=301,L]
  </code></pre>
  
  <p>Can someone help me out here Im not sure what to do?</p>
  
  <p>I also have some other rules</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f    
  RewriteCond %{REQUEST_FILENAME} !-d    
  RewriteCond %{REQUEST_FILENAME}.php -f  
  
  RewriteCond %{QUERY_STRING} ^(ACT=.*)$ [NC,OR]
  RewriteCond %{QUERY_STRING} ^(URL=.*)$ [NC,OR]
  RewriteCond %{QUERY_STRING} ^(CSS=.*)$ [NC]   
  RewriteRule ^$ /news.php\?&amp;%{QUERY_STRING} [L] 
  
  RewriteRule ^(.*)$ $1.php [L,QSA]     
  RewriteCond %{HTTP_HOST} !^www2\. 
  RewriteRule ^(.*)$ http://www2.%{HTTP_HOST}/$1 [R=301,L]
  </code></pre>