IP Address Shows instead of Domain Name - wordpress

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.

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.

This is an easy fix!
Login to the manage and go to "Settings".
Change "WordPress Address" and "Site Address" to match your domain.
Look at the image in this article
https://serverpilot.io/docs/solution-to-wordpress-showing-ip-address-instead-of-domain/

Related

IP address showing instead of domain address for my wordpress website

I have a domain name from NameCheap, and I am hosting a WP site on Amazon Web Services EC2. I have already changed the A record to so the site pulls up anytime i go to myDomainName.com. Everything works fine until I hit the home bottom on the website. At that point the IP comes up in in the address bar. Any pages i access after that will have the IPaddress/page.
I know I may need to change something in the wp-config.php, but I don't think I have this file on my computer (I used AWS to launch WP, and I don't think I have download anything about WP except some plugins). My website address change option in setting-general on WP is also greyed out so I cannot change it. Anyone has any idea how I could make my domain name display?
Any help is appreciated. Thank you so much!!
have you tried changing your home and site url in wp-admin? If you go to wp-admin/options.php you can change the home and site url fields to your domain name. You can also do it through phpAdmin or editing the DB directly (wp-options table).

Used CloudFormation to create Wordpress blog but domain doesn't show up properly

I used AWS CloudFormation to create a Wordpress blog and then bought a domain from GoDaddy website and forwarded it to the domain name provided by CloudFormation
-->godaddy domain: yetanotherdeveloper.in
-->cloudformation domain: "ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/"
Problem 1:
When I search GoDaddy domain in the URL, I get to the site but then only CloudFormation domain is shown in the URL. I want the GoDaddy domain to be there.
When I open a post, before the slash in the URL, cloudformation domain is shown.(e.g. ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/index.php**/2017/09/27/hello-world/**) .I want godaddy domain to be there for ease of access for others.
Problem 2:
Cloudformation uses a public IP which could be dangerous in future in case the server gets down etc. So, i want to change the IP to elastic IP too.
This is after the site is loaded,i get old domain shown
This is when i open some other page or in this case, a post. Here also old domain
one last thing, i hope i'm not wasting much time of yours. If i am, it would be great to point out what i did wrong in this question and i will improve next time.
Thank you!
Regarding the URL, you need to set the root URL on the WordPress configuration to http://yetanotherdeveloper.in, and regarding Elastic IP, you need to update the Cloudformation template to create an EIP and link it to the created instance.
Best regards.
You will likely need to change your site URL in the WordPress configuration:
On the Settings->General screen in a single site installation of
WordPress, there are two fields named "WordPress Address (URL)" and
"Site Address (URL)". They are important settings, since they control
where WordPress thinks your site is located. They control the display
of the URL in the admin section of your page, as well as the front
end, and are used throughout the WordPress code.

IP Address showing instead of Domain name on my Wordpress site

I am having an issue where I have a Domain name from Go Daddy, and I am hosting a WP site on Amazon Web Services EC2. I have already changed the A record to so the site pulls up anytime i go to www.bemoremarketing.com. Everything works fine until I hit the home bottom on the website. At that point the IP comes up in in the address bar. Any pages i access after that will have the IPaddress/page
From what I have gathered, I may need to change something in the wp-config.php, but I am unable to find where this is. Any help is appreciated.
You need to change the Site URL.
You can do this through the Wordpress Settings at Settings > General > Wordpress Address/Site Address, or in the wp-config.php file
define( 'WP_SITEURL', 'http://example.com/wordpress' );
For more details see https://codex.wordpress.org/Changing_The_Site_URL.
Go to settings of wordpress. Then, change the URL as given below.
I do not know if this is still of interest but make sure you have all your pages linking to the actual www.yoursite.com
Also, make sure that your HOME link on the menu links to the www.yoursite.com instead of IP.
Changes made in the WP Settings > General are also needed.
I have fixed the same issue. My domain name is purchased from GoDaddy too. I use a raspberry pi and wordpress to build a website.
For GoDaddy.com, following this explain,
Use Forwarding with masking in your DNS management.
After changing wait for a while.
Go to your website by searching your domain name and it won't change to IP address on the address bar.
I didn't modify WordPress Address (URL) and Site Address (URL)

Changing the Domain for Wordpress Install

I have a domain, www.mysite.com, which is registered at NETWORK SOLUTIONS, LLC. and currently points to a hosted page at a 3rd party.
I have created a new wordpress page on Hostgator, and I created it using the domain www.mysite.biz.
I want to now point www.mysite.com to the new page on hostgator but without redirecting.
I believe what I need to do is:
change the www record on Network Solutions to the IP address on Hostgator.
I believe There is a plugin I can us to change the domain for all of the wordpress database.
Are these the correct steps? What is the plugin name I can use to change the domain?
Here is a plugin I've used to change a domain name in wordpress. https://wordpress.org/plugins/go-live-update-urls/
When you say you want to point www.mysite.com to your new wordpress site "without redirecting", are you saying you want to use www.mysite.com as the new domain name? If so, you're going to want to go into your account with NETWORK SOLUTIONS, LLC and enter in hostgator's nameservers. See here: Network Solution Link and here: Hostgator Link

Website links keeps on redirecting to temporary address

I created a blog at a temporary address provided by my web host.
After buying a domain, I pointed it to the nameserver but the domain always redirects to the temporary address on clicking links.
Support asked me to configure wordpress to my domain name.
I am clueless how to do this. Please help.
Thanks.
Go to your wordpress dashboard -> settings -> general and make sure that your WordPress Address (URL) and Site Address (URL) are correct!

Resources