WordPress migration and URL’s problem
-
Hi guys!
I wanted to be smarter than all the migration plugins or hosting software and wanted to move the site manually from staging domain to the real domain.
So, I
– zipped the entire public_html folder and moved it to the destination domain
– moved the database,
– changed the URL’s in database at _options table,
– changed the database details in wp-config file,
and basically I thought that’s enough, site was working so I was not bothered.Today I have noticed that our site dropped in SEO rankings, and just found that there is a thousands URL’s in database pointing towards the staging domain and also in the files on the server, mainly from Yoast SEO. This plugin remined working on staging domain and that was my mistake I guess.
So, I used plugins like:
– Elementor/Tools/Replace URL (this replaced many URL’s but not all)
– Velvet Blues Update URLs (this plugin replaced many links but not still all)
– Better Search Replace (to replace database URL’s but this plugin was not able to change even one link)And now I’m still struggling to get this fixed.
In the meantime I have turned on Cloudflare and changed non www domain URL’s to www URL’s as this was Cloudflare requirement. So this probably additionally messed everything up.
Now Cludflare is turned off so I can resolve the URL’s problem first.I know I’m an idiot so please don’t tell me what I already know ??
The reason I decided to do the migration on my own was that SiteGround migration tools was giving me an errors always I tried to use the, and also I wanted to have a better control over migration process.
Maybe this was a bad idea but I’m the type thato prefer to edit files on the server than change this in WordPress (just an example) ??Is there any tool or script which allow me to change database UTRL’s and any tool for complete site URL’s change?
I have downloaded full site to my HDD and just checked in VSCode how many old links is there, and there is 1583 results ?? I can change them in VS code and upload the site back but the database is the problem.That’s the tables I need to replace links in:
_options (11 matches)
_posts (41 matches)
_wp_rucss_resources (28 matches)
_yoast_indexable (12 matches)
_yoast_seo_links (485 matches)I will be so grateful for any help…
Thanks so much!
- The topic ‘WordPress migration and URL’s problem’ is closed to new replies.