Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
IP address still showing in address bar after domain resolves
I have a domain, ‘example.com’, registered with Bluehost. I also have a droplet with DigitalOcean. Now, I’ve re-pointed the nameservers to use CloudFlare. Great.
After adding the DNS entries, I go to a browser and type in 'example.com’ … it properly resolves to the correct IP address of the correct Droplet.
But: in the browser bar, upon resolution and display of the Droplet’s server page, the address bar then stops displaying the domain - and, instead, exposes the IP address.
I have tried a 1000 different configurations - including trying same for a subdomain.
However, nothing seems to correct the problem, preserve the domain/subdomain in the address bar, and not display the IP address.
Here’s what I get:
Domain: www.example.com/index.html –> xxx.xxx.xxx.xxx/index.html
Subdomain: subdomain.example.com/index.html –> xxx.xxx.xxx.xxx/index.html
What am I doing wrong??
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×