I hope you can help. I'm not sure if this is even possible...
I'm using mod_rewrite to convert this:
using this line:
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ page.php?level1=$1&level2=$2&level3=$3
via an .htaccess file in the website root.
Do any of you good people know of a way I could use this same technique for an unlimited number of levels of sub-pages and sub-sub-pages? In reality, it's unlikely that the page hierarchy will go further than 4 levels deep, but the CMS allows for an endless tree, so I need to accommodate this in the frontend if I can.
Any guidance would be appreciated.