Moving a wordpress website is one of the common jobs in the freelance websites since many years.There are many blogs and tutorials explaining the process in detail either by video or by image presentation.

In this post, I will explain the basic steps to bear in mind while moving a wordpress website which are necessary to avoid any future problems.

  • Always take a full backup of the website and database to be moved so that in case you run into any problems there is always a way back saving your precious hard work.
  • Upload the files in the server.
  • Update the htaccess file.
  • If your current website is in the root of the main domain like for example it is as www.developingsense.com and it is to be moved to another domain for example www.thedeveloping.in, then there is no such need of updating the .htaccess file.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&amp;amp;amp;lt;/IfModule&amp;amp;amp;gt;
# END WordPress

 

But if your current website is in the root directory of the domain and it has to be moved in any other folder of another domain like www.thedeveloping.in/wordpress, then the .htaccess has to be updated.

 

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

 

  • Now upload the exported database file to the new hosting using phpmyadmin.Do not forget to change the wp-options table rows. There you have to update the new website url in two places saying site_url and home_url.
  • Now update the wp-config.php file in the root of the directory where wordpress is installed.Here you to write the new database name, hostname, username and password. This is where the database connection error occurs if it is not updated correctly.ik

Above are some of the basic steps we have to take care of while moving the wordpress website. Like we know, during migration many types of problems may occur due to different server configurations and thus never hesitate to follow up in the comments section below and i will be more than happy to help you out in that.

Any suggestions or mistakes found in this post reported will be appreciated.

Passion on HIGH

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •