A
A
Abram3332022-04-07 16:04:48
1C-Bitrix
Abram333, 2022-04-07 16:04:48

How to implement multiregionality on one domain?

Good day to all!
There is a website site.ru on it, it is necessary to implement multiregionality without creating folders on the site, so that the links look like this: site.ru/CITY/...
Please tell me how this can be implemented? Mb there is some article or the like. I unfortunately did not manage to find information about the implementation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2022-04-07
@idruweb

I did it through urlrewrite.php
if at the beginning of the url we see the city code, then we write it into a constant and remove it from the url
, as a result, the page is generated in the usual way,
and in the selections and tags we can always substitute the city code from the constant.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question