A
A
Alexander Pankov2021-02-17 10:03:55
1C-Bitrix
Alexander Pankov, 2021-02-17 10:03:55

How to implement regionality in the URL on Bitrix Start?

How to correctly implement regionality (bitrix start) in url?

So that I have an address:

foo.ru/ - Moscow content
foo.ru/spb/ - SPB content
foo.ru/kazan/ - Kazan content

foo.ru/reviews/ - reviews for Moscow
foo.ru/reviews/spb/ - reviews for St. Petersburg
foo.ru/reviews/kazan/ - reviews for Kazan

Well, and so on.

I have somewhere around 6 sections, the content of which needs to be spread across different URLs.
Now the city is taken from my cookie, which is asked from the client when they first enter the site, and the city is in the table and all the content on the site is already tied to the desired city.
The task is to understand how to implement URL binding (a task from the SEO department).

It comes to mind to resolve everything in urlrewrite.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Slashchinin, 2021-02-17
@slashinin

Regionality in URLs is usually a hassle. you need to follow the correct page address, it's easier to do it on the spb.foo.ru subdomain.
But if the task is to use the URL, then specify the region at the very beginning:
foo.ru/spb/reviews/
And for each region, create separate folders with a copy of the structure in the root of the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question