title: Htaccess rule with two parameters
body: <p>I have a problem about ReWriteRule. My htaccess is:</p>
  
  <pre><code>ReWriteRule ^(.*)-about-page/?$ index.php?page=testpage&amp;country=$1 [L]
  ReWriteRule ^(.*)-(.*)-about-page/?$ index.php?page=testpage&amp;country=$1&amp;city=$2 [L]
  </code></pre>
  
  <p>if link like this: <a href="http://www.example.com/countryname-about-page/" rel="nofollow noreferrer">http://www.example.com/countryname-about-page/</a> working good. But didn't work when link was like this: <a href="http://www.example.com/countryname-cityname-about-page/" rel="nofollow noreferrer">http://www.example.com/countryname-cityname-about-page/</a>
  city= did come empty and country= did come with city (country=countryname-cityname)</p>
  
  <p>How can I fix?</p>
  
  <p>My second question is:
  How can I use one ReWriteRule for this instead of two ReWriteRule?</p>
  
  <pre><code>ReWriteRule ^(.*)(-(.*)-?)-about-page/?$ index.php?page=testpage&amp;country=$1&amp;city=$3 [L]
  </code></pre>
  
  <p>1) <a href="http://www.example.com/countryname-about-page/" rel="nofollow noreferrer">http://www.example.com/countryname-about-page/</a> (404 not found)</p>
  
  <p>2) <a href="http://www.example.com/countryname-cityname-about-page/" rel="nofollow noreferrer">http://www.example.com/countryname-cityname-about-page/</a> (worked)</p>