Answer the question
In order to leave comments, you need to log in
Redirecting a site to a subdomain using hosts?
I want to redirect from site.ru to sub.site.ru on one ip - I got tired of constantly adding a subdomain to one site, and links in rss fall without a subdomain.
hosts I wrote in the header so that there were no misunderstandings - as I already found out, only ip is indicated there, i.e. this entry does not work: sub.site.ru site.ru
Is there any other way to solve this?
System is Ubuntu.
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