title: mod_rewrite for two different pages
body: <p>I have two pages:</p>
  
  <pre><code>categories.php 
  </code></pre>
  
  <p>in categories.php page I fetch all categories. </p>
  
  <pre><code>news.php
  </code></pre>
  
  <p>in news page I fetch news by id.</p>
  
  <p>I have used mod_rewrite for categories:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([a-zA-Z0-9-/]+)$ categories.php?url=$1
  RewriteRule ^([a-zA-Z0-9-/]+)/$ categories.php?url=$1
  
  site/categori1 ----&gt; this rule works for categorie page
  </code></pre>
  
  <p>Is it posible open mod_rewrite two different page?(categories.php and news.php)</p>
  
  <p>RewriteRule ^([a-zA-Z0-9-/]+)$ news.php?url=$2
     RewriteRule ^([a-zA-Z0-9-/]+)/$ new.php?url=$2</p>
  
  <p>site/news-title1 above rule not working for news.php page.</p>
  
  <p>How can I use mod_rewrite for two different pages? 
  Thanks in advance</p>