WordPress apparently will resolve partial URLs to the "correct" page when entered at the parent level. Google is including this partial URL in its search results. For example, years ago I wrote a blog post about a site called Bookeo:
If you type in this it will resolve to the above URL.
For some reason Google actually cached the
/book/ URL, as if it's its own page. If you search my sitename + book it returns the shortened, incorrect URL. This is the last thing I want since people might go there expecting to book an appointment or something.
As an aside WP actually resolves to the first result that matches. So if you had blog posts with
/book2/ it'd pick the first one.
Is there a way to make Google only cache the correct destination URL? The sitemap only includes the right one and is linked in
robots.txt. I just manually submitted it to Google webmaster as well.
Is my only option to update
robots.txt to block
/book. Or figure out how to disable that URL resolution functionality in WordPress?