Common Problem Faced While Transfer Website From One Server To Another

After moving few WordPress websites, I faced some common issue as below: 

1. White Screen of Death

The website might showing the blank screen or the critical error message. This might be caused by the theme or the plugin. You can try to disable all the plugin in the website.

How to deactivate all the plugin without wp-admin?

  1. First, connect to your website using FTP client, FileZilla
  2. Go to public_html > wp-content
  3. Rename the plugins folder to plugins.deactivate
  4. Re-access your website
  5. If the problem is fix, login to dashboard and reactivate the plugin one by one. This is to find the plugin that cause the problem. After detect the plugin, you might report the error to the author of the plugin.

2. Internal Server Error

This might be caused by plugin, theme or corrupted .htaccess file

What is .htaccess file

.htaccess file is a configuration file on server running Apache. 

Why .htaccess file so important?

It is important as it can use to configure your website without the need to change the server configuration file. You can use it to rewrite URL, create password-protect directories, change the default index page and many more.

How to regenerate .htaccess file?

  1. Rename your .htaccess file to .htaccess-old using FTP. It is located in public_html folder together with wp-content, wp-admin and wp-includes folder
  2. If the problem fix, login to dashboard
  3. Go to Settings > Permalinks
  4. Click ‘Save Changes’ to regenerate new .htaccess file

I can’t find .htaccess file

By default FTP client does not show hidden files.
In FileZilla, go to Server > Force showing hidden files.



Now you can view .htaccess file

If .htaccess file still not showing

Go to Settings > Permalinks in WordPress dashboard and click ‘Save Changes’ 
You can view .htaccess file now on FTP

3. 404 Error

If the website showing 404 error, you need to regenerate .htaccess file.
If the .htaccess file still not showing, you will need to create a .htaccess file and add the code below: 

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

After that you need to upload this .htaccess file into the public_html folder.

4. 404 Error Except Homepage

There might be some error on .htaccess file

  1. Login to dashboard
  2. Go to Settings > Permalinks
  3. Click ‘Save Changes’ to regenerate .htaccess file

5. Database Connection Error

  1. Edit wp-config.php using FTP client
  2. Check database credentials which include hostname, database name, username and password

6. Unable to Upload Image

There might be some error on the media path. 

  1. Go to Settings > Media from dashboard 
  2. Check the value for ‘Store uploads in this folder’ and make sure it is the same path as in FTP

7. Requested URL Not Found on Server

This indicate that some url still pointing to the old path.

1st option

  1. Login to phpMyAdmin 
  2. Select the website database 
  3. Look for wp_options table and search for site url and home url
  4. Change it to new url 

2nd option

  1. Login website using FTP
  2. Edit wp-config.php located in public_html folder
  3. Add
    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’);
    before the line that says /* That’s all, stop editing! Happy blogging. */. 
    Replace example.com with your domain

How to enable debug mode in WordPress?

  1. Edit wp-config.php file
  2. Look for the line that says ‘That’s all, stop editing! Happy blogging.’
  3. Add define( ‘WP_DEBUG’, true ); before this line
  4. If it is in your file then change ‘false’ to ‘true’
  5. If you need error log, add define( ‘WP_DEBUG_LOG’, true ); below WP_DEBUG line
  6. Save and upload the wp-config.php file to the website

The solution suggested above is just for reference as it worked for my cases.

In conclusion, please make sure you look for a good hosting service provider or pay for expertise to move your hosting to prevent website downtime.

Scroll to Top