Hi all, I have two problems in my current .htaccess. The script below works but has a limitation
RewriteRule ^products/([0-9])$ /products/$1/ [R]
RewriteRule ^products/([0-9])/$ /viewad.php?adid=$1
Limitation: if adid, is more than 10. it fails. I want it to have whatever number still there and work. my current solution was to add this everytime the id went higher than range.
RewriteRule ^products/([0-9][0-9])$ /products/$1/ [R]
RewriteRule ^products/([0-9][0-9])/$ /viewad.php?adid=$1
Could some one refine or explain how to correct this rule to take numbers out of range.
Problem Two. Mapping multiple $_GET variables.
say i had a url like this
http://veepiz.com/africanews.php?app=view&func=viewcategory&categoryid=2&page=1
what rule would i write to have it in this format.
http://veepiz.com/africanews/category/2/page/1
or
http://veepiz.com/africanews/2/1
Thanx a lot for your time