V
V
Vadim Timoshenko2018-06-19 11:58:27
WordPress
Vadim Timoshenko, 2018-06-19 11:58:27

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']}");

But here's the catch. The sitemap is always with the main domain.
I register each subdomain in Yandex.Webmaster separately. To do this, I need a unique sitemap with an active subdomain. Is it possible to finish YOAST SEO with your plugin? And in which direction to dig - tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-06-19
@webinar

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 question

Ask a Question

731 491 924 answers to any question