Could someone help me with restoring my website (with new domain name)? I have a database backup and when restore it, wordpress is redirecting me to old website and domain. I changed site url in mysql and now I have this message: This nataura.ro page can’t be foundNo webpage was found for the web address: / HTTP ERROR 404
Could someone help me with restoring my website (with new domain name)? I have a database backup and when restore it, wordpress is redirecting me to old website and domain. I changed site url in mysql and now I have this message: This nataura.ro page can’t be foundNo webpage was found for the web address: https://nataura.ro/wordpress/ HTTP ERROR 404
First of all, make sure you're domain has correct nameserver setup and you're uploading files to correct place. When you are changing URL from database directly, here's a checklist.
wp_options
table and update only
siteurl
& home
(basically first 2) rows.If it's still pointing to old URL,
There are several ways to update the site URL after migrating:
Using WP-CLI
Run this command:
wp search-replace "https://olddomain.com" "https://newdomain.com"
Use the search and replace DB script
Manual update the DB and fix the DB
siteurl
and home
, change them to the new website URLIt's important to keep the folder structure of the new website the same as the old website, especially when you put WordPress in a sub-folder.
And make sure you remove all the cache and maybe CloudFlare cache (if you use it). Then try again with a clean browser history.