rewrite rule for page url with categoryname
-
This is what i am trying to do:
example.com/categoryname/pagenameI enabled the categories for pages. so i can link my pages to a category.
but when i visit the page the url is example.com/pagenamecould anybody help me figure out how i can get the category name in between the page and the domain name?
example.com/categoryname/pagename
i tried something like this:
add_rewrite_rule();
but regular expressions i barely understand.
Thanks a lot for your help!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘rewrite rule for page url with categoryname’ is closed to new replies.