it redirects fine, but it shows the numerical IP address and not the subdomain name.
It's not a "redirect" that you want (at least, not if you want to do this "properly"). You should configure your subdomain as an A
record in DNS that points to your "home server's IP address".
You must then configure your home server to accept requests for this subdomain. (Probably through a ServerName
or ServerAlias
directive in a <VirtualHost>
on your home (web) server.)
and they offered a checkbox to forward with masking. Masking works.
I believe Godaddy's "masking" just uses a frame
(or iframe
) to literally "hide" the target URL from the browser's address bar. This has a number of drawbacks:
- The URL in the address bar does not change as the user navigates the site. Pages are therefore impossible to bookmark or share.
- The URL in the frame (ie. the target IP address) is the one that will be crawled by bots. So, the IP address will be indexed, not the subdomain used as the "forward".
This might be OK in some casual situations, but most of the time it's not (for the reasons mentioned above) - it is a last resort.