Report this

What is the reason for this report?

how to redirect the domain to another domain

Posted on October 5, 2016

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



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!

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.
server { server_name .domain.com;return 302 $scheme://forwarded-domain.com;}

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;
}

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.