Answer the question
In order to leave comments, you need to log in
How to make subdomains on a separate IP address?
I welcome everyone!
And so, I implemented auto-subdomains through the .htaccess file:
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.sitename\.ru$
RewriteCond %{HTTP_HOST} ^(.*)\.sitename\.ru$
RewriteRule ^(.*)$ http://sitename.ru/blog.php?user=%1 [L,P]
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