I've written small framework like code with HMVC architecture using PHP. Below are the sample SEF URLs to access.
http://domain.com/controller_name/method_name/param1/param2 http://domain.com/folder_name/controller_name/method_name/param1/param2
Above are fine and working with the fixed kind of data. But when I tried building a simple CMS, where I've category inside another category and other and so on i.e., multi-level category structure with set of articles inside, I was not able to make use of above URL. I want something like
http://domain.com/category-name/sub-category-name/sub-sub-category-name http://domain.com/category-name/sub-category-name/article-name
Can anyone help me with snippet to achieve above.