I have a product page on a site I'm working on, and I am using this rewrite rule
- Code: Select all
RewriteRule ^\category/([A-Z][a-z](.*)+)$ /category.php?cat=$1 [L]
this gets the name of the category for the php script. THis works great and I'm not having any problems.
The problem is, that when there are more than 12 products on the page I want to break up the pages into 1,2,3 or how ever many other pages are. The way I am doing that is by adding "category?page=#" to the URL or like this "/catergory/page#".
Now my problem is that I don't know how to add that new variable page# to my rewrite rule. I tired something like this:
- Code: Select all
RewriteRule ^\category/([A-Z][a-z](.*)+)/([0-9]+)$ /category.php?cat=$1&page=$2 [L]
but that didnt work.
What I need to do is pass both variables into the category.php page, but only when there are both var to be passed, - because not all the products have more than 1 page -
I hope that I have written my issue out clearly and would appreciate any help.
Thanks
K

English |
French
