I need to create a subdomain(sub.mydomain.com) and redirect it to google sites web page. Please help.
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!
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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.