[thelist] Mod rewrite question

Jeremy Weiss eccentric.one at gmail.com
Fri Jun 13 08:08:30 CDT 2008

What I've got now is

RewriteRule ^category/([a-zA-Z0-9_]+)/$ browse.php?cat=$1 [QSA,L]

Which allows me to link to my category pages like so:


But now I'd like to add in the page numbers, like:


This sort of works...
RewriteRule ^category/([a-zA-Z0-9_]+)/(page[0-9*]/)$ browse.php?cat=$1&pageNum_productinfo=$2 [QSA,L]

But, if there's no page number, then I get a 404. And, if the page number is more than single digit, I get a 404.

Also, is it possible to make it work if the last / is missing in the URI?


More information about the thelist mailing list