database - WP website showing blank page after moving from subdomain to main domain

admin2025-05-31  0

I created my website on the subfolder /.

After it was finished, I moved the website's files to the main adress / (ftp). And after that, I edited the siteurl and home record in the database in the wp_options table.

I have done this before, and as far as i rememeber, these were all the steps that were needed. However, as you can see for yourself, nothing is showing, just a blank page. Also no connection error, the page source is blank too.

What happened? What could be the cause? The only difference with other websites I moved is that I installed the Wordfence plugin. Could this be a problem? And mostly, were do i start to fix this issue?

I created my website on the subfolder https://www.lokaction.be/dev/.

After it was finished, I moved the website's files to the main adress https://www.lokaction.be/ (ftp). And after that, I edited the siteurl and home record in the database in the wp_options table.

I have done this before, and as far as i rememeber, these were all the steps that were needed. However, as you can see for yourself, nothing is showing, just a blank page. Also no connection error, the page source is blank too.

What happened? What could be the cause? The only difference with other websites I moved is that I installed the Wordfence plugin. Could this be a problem? And mostly, were do i start to fix this issue?

Share Improve this question edited Aug 30, 2018 at 15:25 kero 6,3501 gold badge25 silver badges34 bronze badges asked Aug 30, 2018 at 11:36 Kevin VerhoevenKevin Verhoeven 11 gold badge1 silver badge4 bronze badges 7
  • Can you turn on the debug log via wp-config.php? codex.wordpress/Debugging_in_WordPress#WP_DEBUG – Kumar Commented Aug 30, 2018 at 11:38
  • Done, debug is now active. – Kevin Verhoeven Commented Aug 30, 2018 at 11:49
  • Does the .htaccess mention the subfolder (eg in the RewriteBase line)? – kero Commented Aug 30, 2018 at 15:25
  • It does, but changing it from /dev/ to / didn't change anything either. Something else i can try? – Kevin Verhoeven Commented Aug 30, 2018 at 15:39
  • Log file is available in website_root/htdocs/wp-content/debug.log Can you check the file if you see anything in there? Because you seem to be getting a server 500 error. So that's probably because of your webserver or some of the code is creating a fatal error. – Kumar Commented Aug 30, 2018 at 16:27
 |  Show 2 more comments

1 Answer 1

Reset to default 0

you need to see below post to move word-press site one server to other

Ref :- Wordpress link

some simple steps follow and change site location

you can update your database using following queries

UPDATE wp_options SET option_value = replace(option_value, 'https://www.oldurl', 'https://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'https://www.oldurl','https://www.newurl');

UPDATE wp_posts SET post_content = replace(post_content, 'https://www.oldurl', 'https://www.newurl');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'https://www.oldurl','https://www.newurl');
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748630450a313652.html

最新回复(0)