RewriteRule ^category/([0-9]{1,2})/?$ /category.php?id=$1
^That rewrites to:
/category/<number>/
What should i add for the OPTIONAL page number? category.php?id=2&page=2. Means /category/<number>/ is equal to /category/<number>/page-1/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to use pagination you will have to add an extra param in the URL. If you want
/category/<number>/to go to a specific ID and/category/<number>/to go to a specific page you will have a conflict.What you have to do is this:
This means if you use
/category/<number>/it goes to a specific ID and loads the page #1 and then you can load a specific page using/category/<number>/<page>/.