Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
There is a configuration option available that will disable looking up pages by ID which I believe will solve your issue:
The setting you are looking for is DisableFindContentByIdPath
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...
Write your reply to:
Image will be uploaded when post is submitted