Yoast SEO
XSLT Location for sitemap (2 posts)

  1. hellorun
    Posted 2 years ago #

    Using for WordPress SEO, on 3.4.2 WordPress

    For the sitemap, all of the links are showing up using home_url() (the Site Address in general settings) which is good - that's what we use for our public-facing URL, as it is load-balanced between our servers.

    The sitemap.xml also shows up on that domain.

    However, the xslt referenced uses site_url() (the WordPress address in general settings), which is bad - we only use that URL for our single admin box to get admin UI to work.

    Pretty standard arrangement for load-balanced front-ends.

    is there a way to get the xslt to reference home_url and not site_url so Google doesn't get a reference to our admin box?



  2. hellorun
    Posted 2 years ago #

    Note: I do see there's a set_stylesheet API. We could use that if needed, but where's the best place to set that so it survives plugin version updates?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic