I'm trying to use an A
record to redirect my domain to a separate domain that I own. This process has worked fine with DigitalOcean Droplets -- I just add their IPv4 address in the A record and the request goes straight through to whatever the Droplet is hosting.
However, the website I'm trying to send the request to is operated with shared hosting, so the IP address I got by pinging my website is actually a broader one that does not link to the website, but rather a landing page for anybody who uses the server that the site is hosted on.
I get the same thing while trying to use a GitHub Pages/Cloudflare pages site -- just 404s as I'm probably querying the underlying server and not the webpage they're being served on.
My question is two-part:
- Why does this work on DigitalOcean and not GitHub/Cloudflare? I was under the assumption that Droplets are shared hosting as well, but maybe not...?
- Is there any other way to do a redirect/have a page hosted without having to buy an entire separate droplet?