title: Replace Wordpress URL domain in HTML output (for SEO optimisation)
body: <p>My client has a Wordpress site which uses custom routing such that it is accessible at:</p>
  <p><strong><a href="https://www.website.com" rel="nofollow noreferrer">https://www.website.com</a></strong></p>
  <p>Even though the WP URLs are set to:</p>
  <p><strong><a href="https://wp.website.com" rel="nofollow noreferrer">https://wp.website.com</a></strong></p>
  <p>They need to the routing to be this way. And it works OK.</p>
  <p>The problem is that the outputted HTML references <strong><a href="https://wp.website.com" rel="nofollow noreferrer">https://wp.website.com</a></strong> which is bad for SEO (OG URL, Canonical URL, asset paths etc)</p>
  <p>We've tried setting the 2 different URLS as &quot;Wordpress Address (URL)&quot; and &quot;Site Address(URL)&quot; but lots of things broke. It went very badly.</p>
  <p>So I'm wondering, does WP have a simple HTML output filter I can use to search/replace the URL base? Or maybe do it with HTACCESS somehow?</p>
  <p>Any help would be appreciated.</p>
  <p>CJ</p>