Removing /child from URL path?
Posted: Wed Mar 25, 2009 8:06 pm
I was wondering if someone knew how I could remove the child from all parent/child/page URLs. I think this should be relativly easy. I realize that I can place all pages under the parent, but I would like to have some that are subchildren also, but to still appear without the child/ in the URL path.
If I take a page that is linked as parent/child/page and remove the /child it will still render correctly, so no modifications need to be done on the .htaccess level. But what code do I need to change in the core to remove /child/ from all URL paths? I don't mind reupdating after updates and it seems like this should be relativly easy.
/parent/child/page.htm becomes
/parent/page.htm
Thanks!
If I take a page that is linked as parent/child/page and remove the /child it will still render correctly, so no modifications need to be done on the .htaccess level. But what code do I need to change in the core to remove /child/ from all URL paths? I don't mind reupdating after updates and it seems like this should be relativly easy.
/parent/child/page.htm becomes
/parent/page.htm
Thanks!