Forum Replies Created

Viewing 1 replies (of 1 total)
  • @tuztuz These are some of the queries you can run as well to update the OLD_URL to NEW_URL In mysql db.

    **** Make sure u make a backup of the db before u run these***** Better to be safe than sorry.

    • UPDATE wp_posts set post_content = replace(post_content, '{{ OLD_URL }}', '{{ NEW_URL }}')
    • UPDATE wp_options SET option_value = replace(option_value, '{{ OLD_URL }}', '{{ NEW_URL }}') WHERE option_name = 'home' OR option_name = 'siteurl'
    • UPDATE wp_posts SET guid = replace(guid, '{{ OLD_URL }}','{{ NEW_URL }}')
    • UPDATE wp_postmeta SET meta_value = replace(meta_value,'{{ OLD_URL }}','{{ NEW_URL }}')

    Hope that helps.

    • This reply was modified 4 months, 2 weeks ago by Farooq Ahmed.
Viewing 1 replies (of 1 total)