: URL stays at root when using my domain, but with ip the URL changes to the paths of the links I am using GoDaddy to host my domain, but when I use my domain to go to my contact page
I am using GoDaddy to host my domain, but when I use my domain to go to my contact page (or any other page, including outside pages), it stays at www.example.com, instead of the correct url e.g. example.com/contact.
When I use my ip address and port 203.0.113.111:3050 it works correctly. But when I type example.com/contacts, it says Cannot GET //contact.
How can I fix this? Is it my nodejs server, or goDaddy?
More posts by @Hamm4606531
1 Comments
Sorted by latest first Latest Oldest Best
When you enter the domain name without port, it defaults to 80 for http or 443 for https. If you are using different port, like you are showing in your example (3050), you still need to use it even with domain name - domain.com:3050
DNS does not map anything to specific ports.
It looks like in your case the whole site is loaded in an iframe from the IP address when I open the domain name. It's not a very good or usual setup. You should run the webserver on port 80 and show the page directly, the you won't have problems with urls not changing, search indexing and usability.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.