Question

how to redirect the domain to another domain

I have http://wikiquest.ru/ domain to your host cloud.digitalocean.com. and has the domain http: //другиеигры.рф/ on another host. I need to make a redirect from http://wikiquest.ru/ at http: //другиеигры.рф/ how do I do this on your host?

p.s. I almost know nothing about this, please write in detail. Thank you


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I’m trying to redirect a main domain to a subdomain Didn’t work:

<VirtualHost *:80> ServerName xy.example.com RedirectPermanent / http://abc.example.com/ # optionally add an AccessLog directive for # logging the requests and do some statistics </VirtualHost>```

your code has “‘’'”

Is that an error or that’s how it should be

or on any version 0.9.1 or higher:

server {
  server_name .mydomain.com;
  return 301 http://www.adifferentdomain.com$request_uri;
}

APACHE2 Just create a very simple VirtualHost for the old domain in which you redirect it to the new domain:

<VirtualHost *:80>
    ServerName xy.example.com
    RedirectPermanent / http://abc.example.com/
    # optionally add an AccessLog directive for
    # logging the requests and do some statistics
</VirtualHost>```