• Hi,

    I’m using some strange permalinks for a custom post type:

    post-name.XXX.com

    And everything works fine, but one feature is killing my sitemaps: inc/class-sitemap.php reads:

    /**
     * Do not include external URLs.
     * @see https://www.ads-software.com/plugins/page-links-to/ can rewrite permalinks to external URLs.
     */
    if ( false === strpos( $url['loc'], $this->home_url ) ) {
        continue;
    }

    $this->home_url contains the url: https://XXX.com (which is needed below, so stripping it would not work). So maybe one should change that check to a nice regex which would match subdomains too?

    At least a hook or an option to disable this feature would be nice, current solution would be to change plugins sources, which is not acceptable.

    Thanks in Advance,
    Soeren

    https://www.ads-software.com/plugins/wordpress-seo/

  • The topic ‘Subdomains in Sitemaps’ is closed to new replies.