WordPress custom post type slug duplicate is crawled by search engine bots

Viewed 22

I have a WordPress installation with multiple custom post types. They are working fine - slugs / rewrite rules and stuff like this works for the user. But now there is a problem with search engine bots. On some of the post types they try to crawl wrong URLs - e.g. for a post type called "Makler" - and therefore get 404 errors.

  • This is the real and working URL which is crawled - /makler/name
  • This is what search engines try to reach additionally - /makler/makler/name.

I checked the sitemaps and can't find where I am wrong. I noticed that this problem only occurs with custom post type that have the option "with_front" set on "false". So I think there is an issue with the rewrite rules.

I think it would be possible to fix this via .htaccess rules, but a workaround is not what I am looking for. Here is the URL - https://remaxmagdeburg.de/

0 Answers
Related