I want to create page where I can show all the category tree and on click on them show child tree of that category.
I have functionality working as short code where i am using query string to pass child slug, but I wan to use it as URL not as query string, I have tried many things like add_rewrite_rule() but it's not helping.
My Main page where i have added sort code is - https://sute.com/systems/
where I pass child as https://sute.com/systems/?machine=acer where machine is a query variable with value acer.
I want to have URL like https://sute.com/systems/machine/acer so it's more SEO friendly.
I tried to use rewrite rule but it only works for main page https://sute.com/systems/, when I click on child slug which goes to URL - https://sute.com/systems/machine/acer it show Page not found.
Query string is not SEO friendly so for search engine any page that uses query string all are same. My main page is system but using slug I want to create each child page URL so I can submit it on search engine.
Please any one have any idea how to accomplice that.