HI there,
Bit of a large topic I know but can someone please run through the procedure for creating the ultimate pretty url in Modx please?
I have tried using this guide:
http://rtfm.modx.com/revolution/2.x/administering-your-site/using-friendly-urls but it creates a lot of problems. Some pages create urls which when you click to visit another page, seem to take the previous url as the base. (For example, must pages create urls such as www.mysite.com/page-name.html but some of them create urls like this: www.mysite.com/page-name and when I click to visit the another page it goes to www.mysite.com/page-name/next-page.html instead of www.mysite.com/next-page.html).
Also it puts .html at the end of the url chich I don't want. Pagination with GetPage doesn't work either. If someone could explain the correct way to do it that would be great.
For arguments sake we'll define the 'ultimate' pretty url as: www.domain.com/section/subsection/page-name
Questions I would like to answer are:
Do I need to define a canonical link in the header? If so how do I go about it?
When my site is being crawled, will the search engine index the old style link or the pretty url? If it's the old style link, how can I get it to index the pretty url?
If the page is not part of a section (i.e. www.domain.com/page-name) is there a way of creating a custom path (i.e. www.domain.com/my/custom/path/page-name)?
Do I need to create 301 redirects pointing the old style urls to the new ones?
Also as a separate question, what is the reason that Modx doesn't do this out of the box? Are there any plans to have pretty urls as standard?
Thanks for your time.
[ed. note: Wilbo last edited this post 9 years, 2 months ago.]