Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s most likely an issue related to forcing https. It seems that other plugin/theme/custom code replaces all http to https in URLs. I see other case in the sitemap. Yoast SEO uses native WP functions to get permalink and I’m pretty sure that’s side effect of custom PHP code (which probably uses str_replace instead of preg_replace).

    Thread Starter robteee

    (@robteee)

    Hi Saša,

    Thank you very much for the reply.

    Yes, I can see that also “/blog/https-https-seo-rankings/” is incorrect in the sitemap.

    I’m not a PHP or functions expert, so you think this is a PHP or plugin issue and not a .htaccess issue?

    Thanks again

    It’s unlikely that’s an issue in .htaccess. There is apache module which can replace content “on the fly”, but it’ll change any content (not only sitemap). I see correct URL on blog page.

    I’d guess that there is a PHP code which uses filters wpseo_sitemap_entry or wpseo_xml_sitemap_post_url. It could be outdated plugin or custom code in functions.php. Please try to locate plugin which could force https protocol. Did you activate child theme?

    Thread Starter robteee

    (@robteee)

    Saša,

    I passed on this info to our devs and sure enough there was a plugin that was changing every http in URL to https.

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Post slug incorrect in Post sitemap’ is closed to new replies.