redirect domain to another site's subdomain

Hello Oceaners,

My client have and want to use my website builder system. My domain is

I need to redirect to By the way I use nginx. What DNS records and rewrite rules I must use?



Submit an 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.

Accepted Answer
server {
   listen 80;


   return 301 $scheme://$request_uri;

If is configured in nginx to use as another domain then you will just need your client to point their domain name to your server’s IP address or create a CNAME record to point it to

Basically, on your end you’ll want to modify the line in your server block (in /etc/nginx/sites-enabled/) from:




Then restart nginx with service nginx restart

Your server will now be ready to accept requests for once your client’s DNS is updated.