Answer the question
In order to leave comments, you need to log in
How to implement the functionality of dividing by cities on the Bitrix website as on the Euroset website?
Good day I’m
very interested in how you can make a division by city like on the Euroset
website
That is, that there would be a subdirectory for each city and at the same time the CNC and all menus would work correctly, and the site itself would be scalable so that you wouldn’t have to manually redo everything for each city ?
The question is urgent, it is necessary to implement the same system on your project, but it seems to me that creating subdirectories and dragging the entire structure there, and then manually filtering and modifying is not the best option, can someone tell me how to do it right?
Answer the question
In order to leave comments, you need to log in
Implemented as follows, cities "supposedly on subdomains", in fact, there is no
spb.site.ru, msk.site.ru
spb and msk through nginx is configured as a url parameter $_REQUEST['city'], and of course there is an infblock with city codes (for example, my phones are full there). Also, such a thing can be configured through .htaccess
Example cs-files.ru
You can create an infoblock with cities, assign symbolic codes ("sankt-peterburg", etc.). The rest is configured via .htaccess or urlrewrite.php.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question