D
D
Dmitry Shvedov2017-06-20 17:54:49
PHP
Dmitry Shvedov, 2017-06-20 17:54:49

How to create content for different cities?

There is not a little known site. It has the following pages (all cities):
6cc131dfa5d34e8e861152d56b2c3359.jpg
https://pixelplus.ru/poiskovoe_prodvizhenie_sajtov...
abd39281bd9e498aa240d0f498683a78.jpg
https://pixelplus.ru/poiskovoe_prodvizhenie_sajtov...
We see the following in the search results:
b3ce75d2cb7548b891c68fed1b44e224.jpgQuestions arise:
1. How are such pages created?
2. Do I need to create physical pages?
3. If the pages are not physical, how does the search robot find them?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Boris Korobkov, 2017-06-20
@BorisKorobkov

How are these pages created?

Just like everyone else. There is no link to geolocation here.
Just like everyone else. Website links, sitemaps, etc.

K
kostia_dev, 2017-06-20
@kostia_dev

In fact, there are many options. On one site that did not have a full-fledged opportunity to do this, but it was very necessary, I used the Nginx rewrite rule

location ~ /(?<city>.*)/catalog/(?<section>.*) {
rewrite /([^/]+)/catalog/([^/]+) /catalog/$section?city=$1 break;
}

Then, in the code of the page where the Title and description are displayed, I made an addition to them depending on the presence of the get parameter. Hence the answer to the second question, there is no need to create visual pages. In general, all your possibilities depend on what your site is running on, on which you want to do it. If this is a framework, then it’s generally a beauty.
But in order for these pages to get into the search, they must at least be indicated on the page. It is also desirable to send to the sitemap

O
Oleg, 2017-06-20
@politon

And who is your site, besides you, will search for similar queries))))))
Links will be indexed anyway.
Substitute depending on the Geo IP Location of the visitor

F
Fedor, 2017-06-21
@purplesky

Perhaps you should think about making several versions of the site by city, for example, on subdomains or in a category.
For example, as on Avito:
https://www.avito.ru/sankt-peterburg
https://www.avito.ru/moskva
You can generate in different ways. You need to look at the issue, the geodependence of queries, study the tops.
Perhaps auto-adding %city% in meta tags will be enough. In some niches, you have to write a unique text for each page of each city.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question