Subdomain with htaccess gorod.site.ru on site.ru/?cite=gorod?

Tell me please .htaccess
trying to do a redirect from the subdomain to the main site
below gorod.site.ru moved to site.ru/?city=gorod
Try and not get
RewriteCond %{HTTP_HOST} !^www\.%{SERVER_NAME}$
RewriteCond %{HTTP_HOST} ^(.+)\.%{SERVER_NAME}$
RewriteCond %{REQUEST_URI} !/%1/
#RewriteRule ^ https://%{SERVER_NAME}/?city=$1 [L,R=301]
March 19th 20 at 08:31
0 answer

Find more questions by tags Processing URLhtaccess