domain name redirecting, but changes to IP address

October 5, 2015 1.5k views

When I am typing my domain name in the browser, it redirects to my server. Also, loads the page. But, in the browser, the domain name changes to the IP address of the server. I want it to show the domain name.

1 comment
  • Are you using a CMS like WordPress on your droplet? The behavior you are describing sounds like a rewrite/redirect that on platforms like WordPress usually means that you havent set up the default site URL to be something other than the IP.

3 Answers

If you would like to get support on this, you always need to provide information about your system. We can not see that from here, so what webserver are you using?
How does your VHOST config look? What kind of site are you running?

If you’re using WP or any other CMS application, then probably you might have used IP address for the domain name while installing the application. That is why it is redirecting to IP address. To resolve the issue make changes in .config file and replace IP address with your domain name.


I am using the one click Magento installer image of Digital ocean. I believe it is running Apache.
I tried to find .config file in Magento, but I am not really sure where to find.

Have another answer? Share your knowledge.