title: How can i set optional parameter in the Mod Rewrite-Syntax?
body: <p>I'm german and i'm sorry about my damn sucking englisch.</p>
  
  <pre><code>RewriteRule ^admin/(.*)$ index.php?admin=$1 
  </code></pre>
  
  <p>here is an example.
  so the result i want is for example the id within, but as an optional parameter:</p>
  
  <pre><code>RewriteRule ^admin/(.*)/id-(.*)$ index.php?admin=$1&amp;id=$2
  </code></pre>
  
  <p>Here the id don't must set thats what i want :)</p>
  
  <p>The Link example (i want that here is the same result):<br />
  <br />
  www.exmple.com/admin/edit-user<br />
  www.exmple.com/admin/edit-user/id-1</p>
  
  <p>the problem is: the rule take anytime the first way with only this:<br></p>
  
  <pre><code>RewriteRule ^admin/(.*)$ index.php?admin=$1 
  </code></pre>
  
  <p>can anybody help me ? :)</p>
  
  <p>loving greetings m0.</p>