Answer the question
In order to leave comments, you need to log in
Can a sitemap in YOAST SEO depend on a subdomain?
I use the Yoast SEO plugin in wordpress to generate a sitemap (and other tools I need). And also implemented on the site the ability to select a city with a redirect to a subdomain. (Surgut - surgut.sitename.ru; Moscow - moscow.sitename.ru).
So that there is no dependence on the site address from the admin panel, I use the construction in the config:
define('WP_HOME', "https://{$_SERVER['HTTP_HOST']}");
define('WP_SITEURL', "https://{$_SERVER['HTTP_HOST']}");
Answer the question
In order to leave comments, you need to log in
As I understand it, the cards are identical, so why not just go through it (ready) and add a subdomain.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question