Hide segment in URL but give code access to hidden segment
Posted
by
Brandon Durham
on Stack Overflow
See other posts from Stack Overflow
or by Brandon Durham
Published on 2012-11-10T22:33:37Z
Indexed on
2012/11/10
23:00 UTC
Read the original article
Hit count: 352
I'm using Structure and have a "Supernav" page with multiple children that will make up the supernav for the site. I thought this would be a nice way to have all pages on the site accessible to the client via one location: the Structure UI.
If you visit any of the child pages in the "supernav" group the URL comes out like this:
http://website.com/supernav/prospective-students
I'd love to be able to remove the supernav
segment of those URLs so that it ends up being:
http://website.com/prospective-students
I don't even want the supernav
segment to appear in the status bar when you hover over these links on the page. Is this possible? With CodeIgniter this comes down to a simple routing rule, but I don't know if that's an option with EE.
Appreciate any help I can get!
© Stack Overflow or respective owner