Several subdomains for different categories of the site + subdomains for nodes of a specific type of content.
The project is a city portal. It is necessary for certain categories of the portal – News, Announcements, Products, etc. – to have their own subdomain. For example, when you go to the products section, the address would be tovar.sitename.ru.
Users should be the same across all subdomains; products and announcements are created by users from their profiles. In the user profile, their products will be displayed. On the subdomain, all products will be categorized.
It seems that this needs to be resolved through multisite setup? Or what are the feasible solutions?
The second task. A user can add an establishment, such as a Restaurant or Beauty Salon.
Subdomains need to be created for each node of the establishment. For instance, if the restaurant's name is Rim, the user, when adding content, either writes the name in Cyrillic or enters the subdomain name in Latin script in the machine name field. This way, they automatically have their establishment with the address.
rim.sitename.kz.
What is the best way to implement this? It turns out that all of this will be done on a single database.