Pretty URLS without containing parent URL
Permalink
Hi All,
Can anyone advise how to specify a URL that doesn't include the parent URL?
The situation I have is a group of pages that we want to shorten the URL as much as possible, but still retain the sitemap structure.
Eg...
example.com/team/tony needs to become example.com/tony
The pages DO need to be grouped together under the team main page (there are other reasons for this) so simply moving the pages to the top level isn't an option for us.
Anyone familiar with a way to override the URL system for specific pages?
Thanks in advance.
Can anyone advise how to specify a URL that doesn't include the parent URL?
The situation I have is a group of pages that we want to shorten the URL as much as possible, but still retain the sitemap structure.
Eg...
example.com/team/tony needs to become example.com/tony
The pages DO need to be grouped together under the team main page (there are other reasons for this) so simply moving the pages to the top level isn't an option for us.
Anyone familiar with a way to override the URL system for specific pages?
Thanks in advance.
Sadu
There is also some discussion on the issue at
http://www.concrete5.org/community/forums/customizing_c5/how-to-rem...
There is also some discussion on the issue at
http://www.concrete5.org/community/forums/customizing_c5/how-to-rem...
Thanks, this is probably the way I'll end up going. I don't really want to hack up the core too badly, this functionality is only needed for one section of the site, but there should be enough here for me to work with.
You could set up a rewrite rule in your .htaccess file if this is a one off occurrence. However, that still wouldn't force the sub-page to redirect to the rewrite page, but it would allow you to gain access to the page via a URL off the root of the site.
Thanks, I considered this but it needs to by dynamic (ie pages will be added and removed by the client).
We have a custom library and model to do this with 5.6.2.1.