S
S
Sergey2015-03-23 12:41:16
1C-Bitrix
Sergey, 2015-03-23 12:41:16

How to put the desired city in the title of the page?

There is a site on Bitrix. It has a city detection module installed and a redirect script to the desired subdomain, for example, for Samara - samara.site.ru. and title Buy goods in Samara
For visitors, it works fine.
But in Yandex, Moscow is substituted everywhere (a store in Moscow, buy in Moscow). Google does not substitute the city at all (shop in the city, buy in the city). The sub-domains participate in the search, they were manually added to the search engine and they were indexed. This is all according to the idea is correct.
It does not come to mind how to do better in this case. We need both subdomains and cities in the title.
Tell me who can

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Goryachkin, 2015-03-23
@abaddon65

Well, as an option, you can automatically generate title by subdomain. Write a script that will check the $_SERVER['HTTP_HOST'] variable and if it is, for example, samara.site.ru, then display the title for Samara, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question