How do i redirect:

Code: 
http://localhost/category.php?id=1&page=4
to

Code: 
http://localhost/category/id-1/page-4
WHERE:
-the page number is sometimes not entered

so some can access it:

Code: 
http://localhost/category.php?id=1
Code: 
http://localhost/category/id-1/
Apathetic Reviewed by Apathetic on . .htaccess help How do i redirect: http://localhost/category.php?id=1&page=4 to http://localhost/category/id-1/page-4 WHERE: -the page number is sometimes not entered Rating: 5