more apache mod rewrite help
Posted: Sat Oct 22, 2005 1:54 pm
I have the following two rewrite rules
When someone goes to photos/user it works good.
But when they go to photos/user/1234 the page rewrites to photos/user and ignores the numbers.
What am I doing wrong?
Code: Select all
RewriteRule ^photos/([a-zA-Z0-9_-]+)(/)?$ /albums.php?u=$1
RewriteRule ^photos/([a-zA-Z0-9_-]+)/([0-9]+)(/)?$ /albums.php?u=$1&aid=$2But when they go to photos/user/1234 the page rewrites to photos/user and ignores the numbers.
What am I doing wrong?