$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>database - WP website showing blank page after moving from subdomain to main domain|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin8PV0评论

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');
Post a comment

comment list (0)

  1. No comments so far