Hi Nik!
That's exactly what it took to make it work. :) Thank you!
It would be nice if pages were automatically redirected to the right page. Several of my pages, with ID as url, have somehow been indexed by Google and will now result in 404 pages. Do you know a solution for this?
Avoid accessing pages via the page ID
Hi! On my site, how can I avoid accessing pages via the page ID?
For instance, page ID 1802 is the contact page and can be accessed by both mysite.com/1802 and the page name mysite.com/contact
It should only be accessible by mysite.com/contact
I have searched for a setting for this, but can't find any? –are there any solutions for this?
Hi Caley,
There is a configuration option available that will disable looking up pages by ID which I believe will solve your issue:
https://docs.umbraco.com/umbraco-cms/reference/configuration/webroutingsettings
The setting you are looking for is
DisableFindContentByIdPath
Thanks
Nik
Hi Nik! That's exactly what it took to make it work. :) Thank you!
It would be nice if pages were automatically redirected to the right page. Several of my pages, with ID as url, have somehow been indexed by Google and will now result in 404 pages. Do you know a solution for this?
is working on a reply...