Reputation: 845
I bought a domain name from GoDaddy.com. I configured it to forward to a wordpress website I am hosting on Azure. I used Wordpress VM (preconfigured) to build the web host.
Now, when I go to the domain name, it correctly forward me to the website. But, instead of showing the domain name in the browser, it shows the ip address of the machine.
Does anyone knows how to solve this problem?
I changed the wp-config.php file (WP_HOME, WP_SITEURL), I added code to funtions.php (theme), I updated the database with the new domain name with no luck. I suspect it is something with Azure.
Upvotes: 1
Views: 6372
Reputation: 31
in my case add www. between https:// and domainname.com Example https://domainname.com To ==> https://www.domainname.com
at WordPress Login to the manage and go to "Settings" > General Settings. Change "WordPress Address" and "Site Address" to match your domain.
Upvotes: 1
Reputation: 1844
This is an easy fix!
Look at the image in this article
https://serverpilot.io/docs/solution-to-wordpress-showing-ip-address-instead-of-domain/
Upvotes: -1