title: .htaccess rule for 2 different pages with same rewrite URL
body: <p>i have 2 pages</p>
  
  <p>like</p>
  
  <p>page1.php and page2.php</p>
  
  <p>in my htaccess</p>
  
  <p>1st rule is</p>
  
  <p>RewriteRule ^([-a-zA-Z0-9]+)/?$ page1.php?seo=$1 [L] </p>
  
  <p>2nd rule is</p>
  
  <p>1st rule is</p>
  
  <p>RewriteRule ^([-a-zA-Z0-9]+)/?$ page2.php?seo=$1 [L] </p>
  
  <p>my rewrite rule is working perfectly for page1...but when i click a link which suppose to be redirect on page2...so it is not redirecting on that page...it redirect to page1 only....plz help</p>
  
  <p>full htaccess code is</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(_assets|_css|_fonts|_includes|_scripts)($|/) - [L]
  RewriteRule ^([A-Za-z-\s0-9]+)$ sub-work.php?seo=$1 [L]
  RewriteRule ^([A-Za-z-\s0-9]+)$ portfolio.php?seo=$1 [L]
  &lt;/IfModule&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>thanks</p>