Answer the question
In order to leave comments, you need to log in
Dynamic cities on the site?
There is a site on which there is a choice of cities, when choosing a city, a redirect occurs to the page "Users of the city of Moscow" https://example.com/moskva/users , city pages, of course, should be indexed, but these cities are dynamic, which means, for example, the last user left the city and this city is no longer displayed. Do I understand correctly that you need to write a script that will update sitemap.xml every day or are there any other ways to support seo for dynamic cities?
Answer the question
In order to leave comments, you need to log in
If you are interested in the problem that may arise when the city is empty (when the page starts to give the 404 status), then in addition to deleting the page from the XML (sitemap) it is also worth adding a 301 redirect from this page to another, for example, to the Main page. In this case, if the page becomes available again, then the redirect should not work.
Everything depends on you.
The choice in general is the action of the client, you can hang up a call api
/api/selectregion/77 on it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question