WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] In a WP Network, need the sitemap to use the primary mapped domain (4 posts)

  1. rlgrobert
    Member
    Posted 3 years ago #

    Great plugin, thank you. We are using the Domain Mapping plugin in a WordPress Subdomain Network. For example:

    Primary site: example.com
    Additional site: site.example.com
    site.example.com has "www.another-domain.com" mapped and set as the primary domain.

    Given this, http://www.another-domain.com/sitemap.xml is using site.example.com/ in all of the generated URLs.

    Is it possible to have it use the primary mapped domain in the URLs? Thanks!

  2. rlgrobert
    Member
    Posted 3 years ago #

    Bump. Has anyone seen a solution for this?

  3. Joost de Valk
    Member
    Plugin Author

    Posted 3 years ago #

    The solution is to set your site url to the proper domain.

  4. rlgrobert
    Member
    Posted 3 years ago #

    Hi, thanks for the reply, and thank you for your great plugins. I had since found http://4visions.nl/en/wordpress-plugins/xml-sitemap-feed/ and it generates sitemaps in a Network installation using the primary domain for each without having to change the site url settings.

    I tried to look at the source code for each and determine the difference, but quickly got lost. I would love to use the WordPress SEO plugin for sitemaps as well, but could it use the same method as this other for determining the domains to use the URLs?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic