Answer the question
In order to leave comments, you need to log in
Domain forwarding, what is the best and right way to do it?
Hello. Please tell me how to transfer a domain to a subdomain?
Task: there is a one.site.ru subdomain, you need to make sure that when you go to one, a person gets to two.site.ru
How to do this redirection using .htaccess, I know. The question is different.
To do this, on my web server, I create a clone of the one site directory files, into the two folder, which results in identical files in the one and two folders, and then in the .htaccess of the "one" directory, the food redirects to the "two" directory. Am I doing it right?
Is it possible to delete all files in the one folder, leaving only one .htaccess ?
Answer the question
In order to leave comments, you need to log in
Make the same path to the root folder.
For Apache example:
=== First
DocumentRoot server /www/all.site.ru
ServerName one.site.ru
=== Second
DocumentRoot server /www/all.site.ru
ServerName two.site.ru
Both sites are one.site. ru and two.site.ru will refer to the same directory /www/all.site.ru
UPD - I didn't read the question until the end)))
why is it so difficult to "Census" and "Delete" - in fact two.site. ru is a new site. Why redirect to one?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question