I have this rule at the moment:
- Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ index.php?id=$1 [QSA]
RewriteRule ^(.*)/(.*)/(.*)$ index.php?id=$1&width=$2&height=$3 [L,QSA]
This is what happens with the following:
mydomain.com/1/200/300 - Doest exactly what I want
mydomain.com/1/ - Goes off it some wild loop of kind of a mixture of both
Any ideas how i can get around this? I want 2 different rules depending on the url.
Thanks for any help.