Question

How can I redirect DO subdomain to Google Sites

Posted January 25, 2020 140 views
DNS

I need to create a subdomain(sub.mydomain.com) and redirect it to google sites web page. Please help.

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.

1 answer

Hey,

This can happen a couple of ways(I can think of at the moment):

1. “*.yoursite.com”:

1.1 Add *.yoursite.com to your DNS records as an A record
1.3 Add a new virtual host to your web server.
1.4 Use http as redirection method:
Add this to your index.html in the path set in the virtual host config
<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />

2. “sub.yoursite.com”:
1.1 Add sub.yoursite.com(and www.sub.yoursite.com) to your DNS records as an A record
1.2 Add a new virtual host to your web server.
1.3 Use http as redirection method:
Add this to your index.html in the path set in the virtual host config
<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />

There are of course a lot of other ways to do it but the first one is(in my opinion) the easiest one.

Also, if you would need somebody to do it for you - send me a mail at enmusworld@gmail.com

Cheers!

Submit an Answer