I'm building a website with PHP and trying to make RewriteRules.
There is a category page and it has a pagination. Originally, the URL is like
/blog/category.php?category=2&page=2
And I want to redirect this as /blog/category/2/page/2
How can I make this work?
Only for category part, I tried the rules as
RewriteRule ^category/(d+)$ category.php?category=$1 [NC,L]
but I couldn't figure out how to redirect the page part.
Please help me.
See Question&Answers more detail:os