• Resolved tuztuz

    (@tuztuz)


    Hello, I transferred everything, i.e. directories, files, database from the old hosting to the new one and after entering the new website xxxxxx.home.pl there is a completely white page. I haven’t transferred the domain yet, so it works as domain.eu on the old one and xxxx.home.pl on the new one – maybe this is the problem there is a connection to the database, because I checked it but it looks as if the website was looking for a domain and location on the old hosting, do I need to correct anything other than the wp-config file?

Viewing 3 replies - 1 through 3 (of 3 total)
  • When you transfer site to new domain then you have to replace old domain with new domain everywhere in database, mainly in options table change siteurl and home url. Then update permalinks once from backend.

    Thread Starter tuztuz

    (@tuztuz)

    Thanks

    @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 3 weeks, 3 days ago by Farooq Ahmed.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.