title: Using multiple rewrite rules?
body: <p>I have a simple .htaccess file with the contents below.</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
       RewriteEngine on
  
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
  
       RewriteRule ^(.*)$ index.php?s=$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I want to add this rule.</p>
  
  <pre><code>RewriteRule ^p$ index.php?p= 
  </code></pre>
  
  <p>I tried doing this below but it doesn't work. It seems like both rules are being run. I have tried a couple of different flags and again have had no luck. Could someone tell me how to get this working please.</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
       RewriteEngine on
  
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
  
       RewriteRule ^p$ index.php?p= 
       RewriteRule ^(.*)$ index.php?s=$1 [L]
  &lt;/IfModule&gt;
  </code></pre>