Can't Access Wordress homepage after changing local URL - wordpress

i recently started developing a site for my local business and it doesnt have to have a hosting and a domain. I will use this site to show my clients what they're getting and giving them choices.
Fast forward yesterday, i changed the siteurl and homepage url in phpmyadmin to make the site locally accessible, and i was accessing it though. Today my ip was changed and i changed the ip adress through phpmyadmin. Now i can access all of my pages but homepage. I can access admin panel, access categories page and all other things. But when i try to open homepage it redirects me to the old URL, what should i do?
I am using Astra theme with Elementor, Woocommercial, Cartflows etc.

you can go to phpmyadmin from your host.
go to "options" table. change the "siteurl" to thing you want.
but if it is true, you can do a test.
creat a new page for your home page and set that for homepage from general-option -> reading .
test that. It should be work.

Related

WordPress site not working on main domain

I've uploaded the WordPress website on a server. and if try to access the site using the main domain it shows the screen shown below. and if I update the site URL in the database with a subdomain and use subdomain then the site's homepage opens but cant switch to any other page.
First make sure that the dns are correctly propagated, especially the nameservers.
Try to change permalink settings and flush cache on your browser.

How to set up permalinks properly in wordpress?

I recently migrated from Bluehost to Digital Ocean for my hosting. The only problem is I was using the HTTPS while I cloned the site with the duplicator plugin, So after researching for a while, I was able to access my admin panel but all the links on the page seems to be messed up. Let's say mydomain.com is now currently pointing to my website and the dashboard is accessible via mydomain.com/wp-admin. but clicking any of the links on my homepage exposes my IP address and takes me to 139.59.xx.xx/any_internal_link. How can I fix it?
check you wp_option table for siteurl and home value, update it with your new site URL if needed
go to your dashboard, permalink, and hit the save button (without changing anything)
if you configured yourself your apache/nginx vhost, please post your configuration.

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).

Wordpress Multisite: Mixing IPs, domains and URL Proxies

Our company is trying to transition to WordPress Multisite but we have several issues working against us at the moment. We host WP outside our server environment (we use Amazon for our WP sites) so we actually have to use an URL proxy to our Amazon servers. The other issue is that we needed to install Multisite in the root of the folder so the domain is http://100.10.20.30/foldername but we can't proxy that to http://www.domain.com/foldername because that is a live site that we're not moving to WP any time soon. So, of course, the problem we're running in to is that the IP is showing up not only in the source code but in Google now as well (which we don't want).
Does anyone know of anything we can do to keep the IP out of the source code/Google? I was thinking about rewrite rules in the htaccess file but didn't want to do anything until I had some better ideas.
Also, I can't use the domain mapping plugin that everyone seems to suggest for this type of issue because our sites aren't hosted in the root of our server (a prerequisite for the plugin).
So to break it down, this is what we need:
Multisite Parent Blog <-- This has to be the IP address
Multisite child blogs <-- Domain name but when we set the actual proxied domain name in the settings we get a 404 error because it's not looking in the right place. It's looking for an actual folder on our internal servers.
Thanks!
Found the solution myself. Posted below:
In the Multisite dashboard, click on "All Sites" then administer the specific site.
Under the "Path" field, you'll need to deselect the "Update siteurl and home as well."
Save changes.
Click on "Settings" tab.
Change the URL in the following fields: "SiteURL" and "Home"
Save changes.
When all is said and done, the IP is showing in the "Info" tab but it changes the URL in the source code to your domain.

wordpress page permalink is not working on local

I have wordpress website on server, created pages and that's working fine, but when I download wordpress files and DB on local and want to run with localhost, permalinks for pages are not working.
It seems this is an old post, but this might help others that encounter same error.
Select:
Apache –> Apache Modules –> and that will display the lists of available modules.
Now just check rewrite_module.
source from WordPress Custom Permalink not Working in Localhost
Hope that helps.
Sometimes when copying from one server to another, wordpress' permalinks goes a little screwy, try setting them back to default (using the admin panel) and then setting them again to your desired permalink structure (being sure to apply the changes each time).
you need to go into the database and change a few options.
Goto your phpmyadmin installation and navigate to wp-options table. Change the siteurl and home options to your localhost address.
Wordpress needs these database tries to build your permalinks. If they are wrong, then it will direct your links to incorrect locations.
You can simply fix this by doing the following:
Go to settings in your WordPress site.
click on permalinks ( You will see the URL structures of your newly configured WP site. (if it shows your original website values, go to settings-> general and set your local site URLs
Don't do any changes, just click on the Save button.
Refresh your local site and click on your page link or post.

Resources