My client has a Wordpress site which uses custom routing such that it is accessible at:
Even though the WP URLs are set to:
They need to the routing to be this way. And it works OK.
The problem is that the outputted HTML references https://wp.website.com which is bad for SEO (OG URL, Canonical URL, asset paths etc)
We've tried setting the 2 different URLS as "Wordpress Address (URL)" and "Site Address(URL)" but lots of things broke. It went very badly.
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?
Any help would be appreciated.
CJ