Answer the question
In order to leave comments, you need to log in
How to redirect from subdomain to domain?
Good day
to all In general, there is, for example, the vk.com domain and the path along which the vk.com/page/888 page lies .
How to make sure that certain subdomains are mirrored to the same place?
that is, the path someSubDomain.vk.com/page/888 led to the same place as vk.com/page/888 .
It is necessary at a certain moment to redirect a person, from a domain to a subdomain
. He is not strong in the back, as well as with what is connected with domains. Explain in words what needs to be done so that at least some kind of picture is formed.
If there is no easy solution a la to insert some file with configs, then maybe someone can give the correct vector and how hard is it to implement?
Answer the question
In order to leave comments, you need to log in
Depends on the web server. For Apache, create a virtual server and add vk.com to servername, and subdomain.vk.com to serveralias.
if the server is Apache, then it is possible through the setting in the .htaccess file, or in the virtual server settings,
see Setting up redirects on common servers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question