I have a link in my index.html:
href="my_page.php?cat=14&p=1";
Now, how can I rewrite this so that it looks like this:
/my_page/14/1
I have this so far, but I don’t know how to add the ending ‘/1’ to this:
RewriteRule ^kategori/([0-9_]+)$ browse_cat.php?cat_gr=$1 [NC]
Thanks
Have no apache installed here at home, but this should do the trick.
(?: …)? makes the second part optional. So /kategori/14 as well as /kategori/14/1 should work.
If not, you’ll need two rules