I have the following URL: www.mydomain.com/musician.php?musician=musicianname&id=idnumber
I am using mod_rewrite to achieve this: www.mydomain.com/musician/musicianname/idnumber
This is the rule I am using:
RewriteRule musician/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ /musician.php?$musician=$1&id=$2 [L]
This is working just fine but I want to make this URL more user friendly. I would like to hide "musician" and "idnumber" from the url and have only "musicianname": www.mydomain.com/musicianname/
What is the best mod_rewrite rule to achieve this?