-
Hi,
I want to transfer my website from example.com to test.example.com. I use it as a temporary test site, which I reset and sync every midnight. I do migrate my whole wordpress database using wp-cli:wp search-replace 'https://example.com' 'https://test.example.com'
Now I noticed that my redirect rules in RankMath are still pointing to the original domain, not the new one. Usually the wp-cli script should replace all occurences smart enough, but it does not work in this case. I was told by the developers that this might be an issue inside the plugin itself. Maybe those settings are not stored in the mysql database, or maybe deep inside json datatypes.
https://github.com/wp-cli/wp-cli/issues/1592#issuecomment-1256897848
Is that assumption true, or why can’t I simply rename those redirects? It would be nice if you could give me an explanation, workaround or proper solution.
Also I am wondering if there are more things to change or reset when doing a domain migration. I can imagine that I need to reset the sitemap, but how can I do that using wp-cli?
Thanks a lot 🙂
The ticket ‘Transfer domain and rename redirect URLs using wp-cli’ is closed to new replies.