Answer the question
In order to leave comments, you need to log in
How to get a GET parameter from a subdomain?
Hello!
I decided to make a subdomain on my site for each city. Previously, he received a city and an article. - site.ru/city/article. I received parameters in htaccess, before -
RewriteRule ^(.*)/(.*).html$ index.php?city=$1&articles=$2 [L]
everything worked.
Now the structure is like this - city.site.ru/article.
Now I'm doing like this -
RewriteRule ^(.*).site.ru/(.*).html$ index.php?city=$1&articles=$2 [L] - doesn't work, but it should
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question