Answer the question
In order to leave comments, you need to log in
How can I make the subdomain refer to the main domain, but at the same time the address bar should contain the name of the subdomain?
I have a 2nd level domain to2.site.ru, I need when a user visits this address, he gets straight to the domain, but the domain itself would refer to site.ru its index page.
I need to replace the DocumentRoot of the to2.site.ru domain. How can this be done through .htaccess or php?
Answer the question
In order to leave comments, you need to log in
And there are no ordinary alias? apache config:
<VirtualHost *:80>
ServerName site.ru
ServerAlias www.site.ru www1.site.ru www2.site.ru
</VirtualHost>
https://www.namecheap.com/support/knowledgebase/ar...
google wildcard subdomain
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question