0

Recently I switched my domain, unfortunately before that a lot of posts had internal linking to my own other posts by including the old yyy.com domain.

I need to change it in all my posts, via MySQL all "yyy.com" to "xxx.org". What's the command for it?

1

Instead of replace url directly in mysql db Try with Velvet Blues Update URLs wordpress plugin. It is safe to use this plugin.

Because mysql db has some serialize values for post meta key. In that case your solution will not work proper.

I had used velvet blue update urls plugin many times while migrating wordpress site from one domain to another.

Link For Velvet Blues Update URLs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.