Maybe there is a mod_rewrite guru in the apache forums... How come my second rule works if I comment out the first rule? #RewriteRule ^show/(.*)/$ /show.php?name=$1 RewriteRule ^show/(.*)/season/(.*)/$ /show.php?name=$1&season=$2 Code (markup): If I call http://mydomain/show/Example/season/1/ everything works perfect? But If I uncomment my first rule and I call http://mydomain/show/Example/season/1/ only the first rule will work..? any idea?
Try to put your second line first and add [L]: RewriteRule ^show/(.*)/season/(.*)/$ /show.php?name=$1&season=$2 [L] Code (markup): Try to read J.Friedl's book on regular expressions.
You could try to use something like this.. RewriteRule ^show/([a-z]+)/$ /show.php?name=$1 RewriteRule ^show/([a-z]+)/season/([0-9]+)/$ /show.php?name=$1&season=$2 Code (markup):