How to forward a [sub]domain to another address? (not just HTTP!)

How to forward a [sub]domain to another address? (not just HTTP!) - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the How to forward a [sub]domain to another address? (not just HTTP!) error on your web browser. Problem :


I have bought domain1.me from GoDaddy... (yeah, I know... but ME domain registrars seemed quite hard to find...) I'm mainly hosted at 1and1. I have registered subdomain sub1.domain1.me and redirected it to my 1and1 account. That should eventually work fine. Then I have registered sub2.domain1.me and tried to redirect it to a box at home. It works #1 when for HTTP. I can access SSH server without any problem when I use the IP directly, but not when using sub2.domain1.me:22. The way I see this, they (GoDaddy) are redirecting only on port 80 (why would they?). I have looked at 1and1 forwarding too and they ask for an URI starting with http so I guess that's the same behavior.



What are you guys doing to be able to host stuff from home (HTTP, SSH, SVN, Git, etc. etc.) using a domain name to prevent everyone to have to remember your IP???



Heeeelp!
Thanks!


Solution :

For the why, it would depend on how they're redirecting.



If it's truly a HTTP Redirect then it can only redirect HTTP.



If they're doing port forwarding or an equivalent, they'd have to specify a port or port range to forward and it's generally considered more secure to limit it to specifically the ports you want. I'm guessing the vast majority of people only need HTTP(S). Maybe if you contact them they can make a special case for you.



If they're just pointing DNS records, it should just work as far as I know.




What are you guys doing to be able to
host stuff from home (HTTP, SSH, SVN,
Git, etc. etc.) using a domain name to
prevent everyone to have to remember
your IP???




I generally don't. I keep my source control and FTP etc with my hosting provider and that generally works well for me.



Before I had a hosting provider (aka back when I was a broke high school student) I used No-IP to get a free subdomain pointing to my machine. If you don't need to use your own domain (i.e. it's just your friends or something) then you could go that route. They might have a paid solution that lets you use your own domain, but I haven't used any of their paid stuff, so I can't say for sure.



I just point the dns for the hostname to my home ip address. I have to repoint it when it changes - but that isn't very often.


We hope that this article has helped you resolve the redirects, subdomain, http error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=