I need some help regarding .htaccess rewrite rule. One of my page have combination of following different values which need to be rewrite in different format.
http://mysite.com/test TO http://mysite.com/page.php http://mysite.com/test/$cat/$id TO http://mysite.com/page.php?cat=$cat&id=$id http://mysite.com/test/$cat TO http://mysite.com/page.php?cat=$cat http://mysite.com/test/$cat/&next=13 TO http://mysite.com/page.php?cat=$cat&next=$next I currently have following rule that only works for 2nd and 4th example
RewriteRule ^test/(.+)/(.+)/?$ page.php?cat=$1&id=$2
http://mysite.com/test/$cat/$idTOhttp://mysite.com/page.php?cat=$cat&id=$id, not the other way around.$nextand$iddiffer? Will$idALWAYS be numeric only, and will$nextALWAYS contain non-numeric character(s)?$nextshould be passed in&next=13format at the end, actually I am using SmartyPaginate plugin and It doesn't let me change the link structure for$next, that's why I need to pass that value in default structure.