Answer the question
In order to leave comments, you need to log in
How to redirect from GET parameter to subdomain?
I have a
site like site.ru/?city=novosibirsk&utm_source=ssss
_
I have already read three dozen articles, but I understood little in this area
Answer the question
In order to leave comments, you need to log in
Everything turned out to be much easier. Changes had to be made in the hosting panel in the domain settings. It was necessary to add dns records
to "Domain names"
*.site.ru. / A (Internet v4 address) / server ip
* / A (Internet v4 address) / server ip
in "WWW domains"
Add *.site.ru to aliases
Index page - index.php (or your own)
autosubdomains - disabled
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question