title: htaccess RewriteRule generate url with 2 parameters in any order
body: <p>I have this url with 2 parameters</p>
  
  <pre><code>https://mywebsite.com/folder/subfolder/page.php?id=999&amp;title=this-is-a-test
  </code></pre>
  
  <p>and I need a rule to generate the following url</p>
  
  <pre><code>https://mywebsite.com/page/this-is-a-test-999/
  </code></pre>
  
  <p>I tried this rule</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^page/([^-]*)-([^-]*)/$ /folder/subfolder/page.php?&amp;id=$1&amp;title=$2 [L]
  </code></pre>
  
  <p>and I get this url</p>
  
  <pre><code>https://mywebsite.com/page/999-this-is-a-test/
  </code></pre>
  
  <p>what changes I need to do in the rule to get </p>
  
  <pre><code>this-is-a-test-999
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>999-this-is-a-test
  </code></pre>
  
  <p>any idea how to fix it?</p>