Cleaning up my address bar by removing container pages
Permalink
Hi,
I want to clean up my extremely long links. I have prettyURLS turned on and that helps, but what doesn't help is that I am using pages as containers to create subdirectories for autonav and those containers translate into many subdirectories and long links:
example:
http://www.mysite.org/cms2/ministries/ministryage/children/about-ch...
site name/subdirectory/navcontainer/navcontainer/Page/SubPage
Id love to make this:
http://www.mysite.org/children/about-children...
I've been trying to get a rewrite working to always remove the subdirectory listing after landing on the page. I have a thread open on that currently.I have also been making use of the location function on the sitemap. However, those two functions only are currently effecting the initial link (I type the short link in my browser and it works). It is not effecting the long link (I type in the short link and the short link stays in my browser address bar.
I am thinking there are multiple things in play here.
1. The rewrite conditions to permanatly make /cms2/ transparent.
2. A structure layout that shortens actual links to pages.
So I guess my question in this thread is this. Is there a way to use autonav (or maybe megamenu) to create automatic subdirectories without having to have page addresses to each level of container? Or, ami I missing something foudational to the way subdirectory containers work in C5?
thanks
I want to clean up my extremely long links. I have prettyURLS turned on and that helps, but what doesn't help is that I am using pages as containers to create subdirectories for autonav and those containers translate into many subdirectories and long links:
example:
http://www.mysite.org/cms2/ministries/ministryage/children/about-ch...
site name/subdirectory/navcontainer/navcontainer/Page/SubPage
Id love to make this:
http://www.mysite.org/children/about-children...
I've been trying to get a rewrite working to always remove the subdirectory listing after landing on the page. I have a thread open on that currently.I have also been making use of the location function on the sitemap. However, those two functions only are currently effecting the initial link (I type the short link in my browser and it works). It is not effecting the long link (I type in the short link and the short link stays in my browser address bar.
I am thinking there are multiple things in play here.
1. The rewrite conditions to permanatly make /cms2/ transparent.
2. A structure layout that shortens actual links to pages.
So I guess my question in this thread is this. Is there a way to use autonav (or maybe megamenu) to create automatic subdirectories without having to have page addresses to each level of container? Or, ami I missing something foudational to the way subdirectory containers work in C5?
thanks
You can use an alias and set canonical:
https://documentation.concrete5.org/editors/in-page-editing/the-tool...
---
https://www.concrete5.org/community/forums/customizing_c5/remove-par...
https://documentation.concrete5.org/editors/in-page-editing/the-tool...
---
https://www.concrete5.org/community/forums/customizing_c5/remove-par...
Thanks everyone. I'll take a look at setting canonical.
I will defer my questions to this thread:
https://www.concrete5.org/community/forums/installation/hide-the-sub...
Thanks for the help.
https://www.concrete5.org/community/forums/installation/hide-the-sub...
Thanks for the help.
Take a look at the documentation pages:
http://documentation.concrete5.org/...