Mobile app version of vmapp.org
Login or Join
Hamm4606531

: 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

@Hamm4606531

Posted in: #Godaddy #Links #NodeJs #Url

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamm4606531

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme