Sometimes displays current post title instead of 404 page title
-
The 404 page’s title displays correctly if the invalid URL is at the top menu level. BUT if the invalid URL is deeper at a sub-menu level, then instead of displaying the correct 404 page title, the title of the current post is displayed. Examples below.
We’re using X Theme and their X Custom 404 plug-in for a custom 404 page. When I deactivate Yoast SEO, the problem is resolved.
When I deactivate X Custom 404 plug-in, and instead install and activate 404page plug-in using the same existing 404 page, it too, has the problem, but then when I deactivate Yoast SEO the problem is resolved. Also tried setting a different existing page to be the 404 page with 404page; no luck.
Examples of this on our site, where I’m appending abc here to force a 404 error –
1. Correct custom 404 page title of Whoops! is displayed
https://nexlan.com/abc
https://nexlan.com/accountmate/abc
and a post, https://nexlan.com/trees-in-the-forest-of-reports/abc2. Incorrect custom 404 page title that’s our most current post title, Year-End Capital Investment Planning, is displayed
https://nexlan.com/accountmate/modules/accounts-payable/abc and
https://nexlan.com/industry-solutions/manufacturing/abc
(Each time we add a new post, the newest post title becomes the incorrect 404 page title.)In Yoast SEO, Force Rewrite Titles was set to Disabled by default. When I try changing it to Enabled, the problem remains the same.
Is there another Yoast SEO setting I can try?
- The topic ‘Sometimes displays current post title instead of 404 page title’ is closed to new replies.