rlgrobert
Member
Posted 2 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!
rlgrobert
Member
Posted 2 years ago #
Bump. Has anyone seen a solution for this?
The solution is to set your site url to the proper domain.
rlgrobert
Member
Posted 2 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?