I’m german and i’m sorry about my damn sucking englisch.
RewriteRule ^admin/(.*)$ index.php?admin=$1
here is an example.
so the result i want is for example the id within, but as an optional parameter:
RewriteRule ^admin/(.*)/id-(.*)$ index.php?admin=$1&id=$2
Here the id don’t must set thats what i want 🙂
The Link example (i want that here is the same result):
http://www.exmple.com/admin/edit-user
http://www.exmple.com/admin/edit-user/id-1
the problem is: the rule take anytime the first way with only this:
RewriteRule ^admin/(.*)$ index.php?admin=$1
can anybody help me ? 🙂
loving greetings m0.
Try changing the order of your rules and don’t forget the [L] flag at the end :