Like 58.com, the front-end pages and back-end business logic of multi-city websites are the same, can you share a front-end code and back-end code?

the front-end pages and back-end business logic of multi-city websites like 58.com are the same. can we share a front-end code and a back-end code?
that is, can I use option 2 below?

Php
Mar.09,2021

of course, and this is definitely the latter option.
there is no reason to use the first option

.
Menu