I just want this URL
example.com/?cat_page_10=2
into this URL
example.com/cat-page/10/2.html
the above URL has two (double) vairables 10 and 2 are both are flexable/dynamic variables they will change according to requested page.
i tried this
RewriteRule ^cat-page/([^/]*)\.html$ /?cat_page_10=$1 [L]
But result is this
http://example.com/cat-page/2.html
and i want this
example.com/cat-page/10/2.html
Because 10 is also dynamic variable in url so iw ant both will change according to requested url Anyone help me out where i mistake?
Your existing
RewriteRulepattern is not correct as it allows only one/after/cat_page.You may use this rule: