only homepage work after uploading wordpress website

Pace-by-Footstep Guide to Migrate Your WordPress Site to a New Host

Terminal updated on:

Are yous ready to drift your WordPress site and move to a new host or server? Moving your website to a new host tin can be a daunting and stressful experience, but it doesn't demand to be. Even though there are of import steps to migrate your WordPress site if you follow our guide you lot can succeed.

Many people are faced with the need to move to a new host because of problems with their current provider and take only had enough. Just all too often, migrating to a more reliable host is delayed time and again for fearfulness of making a mistake and damaging your site(southward).

To go around the problem, people will may pay a large fee for a professional to move their site for them. Or search for a new host that offers a migration service as part of a new hosting parcel. And so in that location are the people reading this article who accept the tertiary option of having a go at information technology themselves.

If you spend a little time preparing your own website, migrating is zero to be concerned about. It tin can exist a very straightforward project if approached correctly and can easily exist reversed out of should any bug occur.

Permit's run through the steps required to move your WordPress website to a new host, but before we go started showing you how you tin can migrate your site, please proceed in mind that many of the best WordPress hosting companies will actually move your site for you, and then if you have but purchased a new hosting program and are looking to move your site check with your new hosting provider first to run into if they offer complimentary migration.

Table of Contents

Quickly curl down to whatever section or you can even bookmark whatever of the links below to brand it easier to come back if you lot have to take a break during the procedure:

  1. Back up your website files
  2. Export The WordPress Database
  3. Create The WordPress Database On Your New Host Server
  4. Edit the wp-config.php File
  5. Import Your Database
  6. Upload The WordPress Files To Your New Host
  7. Defining New Domain & Search/Supervene upon Old Domain
  8. Final Touches

Step 1: Backup Your Website Files

FTP-Transfer

The very showtime step before migrating is to back up every aspect of your site. This should be a part of your general WordPress security, and is practiced exercise before any major modify. Only it is also a requirement of migrating your WordPress installation since there is then much data being moved.

So how do yous support your site? There are plenty of plugins y'all can use to backup WordPress for yous. With a fill-in plugin you typically install and and then employ built-in settings to manage which files get backed up, how often and where your backups are stored.

WPvivid

If you lot want to employ a plugin, 1 of the best options is WPvivid. This plugin offers tons of powerful fill-in options for scheduling, restore points, limit files, filter big files, backup splitting, backup themes and plugins, remote storage compatibility, multisite back up and more.

Alternatively you tin can take a more manual approach. To give you a quick summary, transmission backups require a file transfer tool (FTP) in order to access your website files. Two popular FTP programs are FileZilla (PC) and Transmit (Mac). Afterwards installing you'll need to use SFTP credential (from your web host account) to connect to your website's server. One time you've continued select and download all files under your website's directory. This includes the .htaccess file that is set to exist hidden. Consult your FTP program's help file to have it display hidden files if you lot are unable to encounter this file.

Depending on the number of media uploads y'all have in your site, this could take some time. While this download is underway we tin can begin footstep two and make a copy of your database.

Footstep 2: Consign the WordPress Database

Database Export

Exporting your database is a simple procedure that only requires a few steps to complete. Login to the cPanel account of your web server and open the phpMyAdmin awarding. Select the database that contains your WordPress installation from the listing on the left hand sidebar and one time selected click on the Export tab on the navigation carte.

The default settings of a Quick export and the SQL format for the export are sufficient for what we demand. Click the Go push button and the database export process will begin and a file will exist downloaded to your local estimator.

One time the database consign and the FTP transfer of your files have both completed, y'all are set to motion onto the next phase.

Step 3: Create the WordPress Database on Your New Host Server

Before we can begin the migration to the new web host, we need to create an environment for a WordPress installation. To do this y'all must create a database that you can import your SQL information into.

Login to your new web host with the user credentials they have supplied you and connect to the cPanel software. For our guide we will be using the MySQL Databases awarding. If your web host doesn't take that application running so you will should contact their support team to find their method of creating new databases.

The steps to create a database are quite simple:

  • Open up MySQL Database and create a new database with an advisable proper noun for your website.
  • Create a new MySQL user (with a secure password).
  • Add together this user account to the new database and grant it All Privileges.

Write down the database proper noun, the new MySQL username and its password. You volition need them presently.

Step 4: Edit the wp-config.php File

Browse to the binder on your local computer where you downloaded your website files to. In that binder there is a file called wp-config.php that controls the access between WordPress and your database.

Make a copy of this file and store it in some other folder on your local computer. This is necessary for restoring the changes nosotros are about to make should something go wrong later on.

Open the original version of the file with your favorite text editor and make the following three changes:

1. Change the Database Proper name

Locate the following line:

define('DB_NAME', 'db_name');

The db_name portion of this line will currently be ready to the MySQL database name of your erstwhile spider web host. This must be changed to the name of the new database you lot have but created.

2. Change the Database Username

Below this you will discover the line:

define('DB_USER', 'db_user');

In this line you need to change the db_user portion from the username of your erstwhile host to match the new username you have merely created.

iii. Change the Database User Password

Finally, edit the third line:

ascertain('DB_PASSWORD', 'db_pass');

As with the others the db_pass department of this line must be changed to the new secure countersign you created for your MySQL user.

Save wp-config.php and close the file.

Step five: Import Your WordPress Database

Database Import

Now that you lot have a new database to piece of work with we tin begin the import procedure.

Launch phpMyAdmin from the cPanel software on your new server and select your new database from the list on the left easily sidebar. In one case it opens select the Import tab from the navigation carte du jour.

In the File to Import section click the Choose File button and select the SQL file you exported previously.

Un-tick the Partial Import check box, make sure the format is ready to SQL and then click the Become button. The database import volition now begin.

The time this import takes varies depending on the size of your database. You should receive a bulletin informing you of the success of the import when it has finished.

Pace vi: Upload The WordPress Files To Your New Host

Now that you have the new database prepared and you've reconfigured the wp-config.php file, information technology is time to begin uploading your website's files.

Connect to your new spider web host using your FTP programme and scan to the folder that your website is going to be held. If this is the principal, or but site being installed on this web server then uploading the files to the public_html folder is the usual directory.

With the remote directory selected you tin upload your website files that should at present include the updated version of wp-config.php. Equally with the earlier download, this procedure can accept some fourth dimension.

Don't delete these files from your local reckoner one time the upload finishes. They are still needed until the concluding steps have been completed.

Step vii: Defining New Domain & Search/Replace Old Domain

If you are moving to a new/different domain and then you lot should read over this stride, if not, then y'all can skip this because you lot don't take to update your site to point to a different domain.

One issue people always seem to have when moving their site is that they've added links to other posts on their site or inserted images directly past pointing to a URL on the server, causing these to break when moved over to a new domain. If you lot want to chop-chop and easily search for whatsoever instances of your old domain name and supersede with the new name we suggest you take a await at the Search Replace DB script on github. This will allow yous to practise this with great ease. Just make sure you DELETE it when your are done (for security reasons) and don't identify it in your root domain, create a temp folder with a random name to host the script.

Changing Site URL: By doing a search and replace for the quondam domain and replacing with the new domain you'll likewise exist altering the site_url and home url values in the database (Irresolute the Site URL) which will ensure that when yous endeavor to log into your site on the new domain it doesn't effort and redirect you lot over to the former domain.

Step 8: Final Touches

This step actually includes 2 separate mini steps with (potentially) several days between them.

First – before yous can use the site on your new host you will need to reconfigure your domain's DNS settings. They will exist fix to point to your old host and you will need to point the correct records to the new server IP address.

This procedure will depend on where y'all have your domain registered. The details of completing this process are too varied to discuss in this postal service, but your domain registrar should take all of the details you demand to make this modify.

DNS changes tin can have up to 48 hours to fully propagate. It'south all-time to exercise this at a period when you look lower levels of traffic. During this 48 hour window you should avoid making whatsoever changes to your website every bit you lot may exist changing the old version of the site.

Second – after the 48-hour period has expired you should now be accessing the new spider web host when you go to your website. It's at this indicate you can connect to your erstwhile spider web host to delete the files and database. You should however take a local backup re-create of these files and the database export, along with the original wp-config.php file in case yous demand to ringlet back the migration. It can be a adept idea to concur onto these files for a an extended menstruum just to exist on the safe side.


Equally yous can see, when broken down into the above elementary steps, the process isn't that difficult. All it actually requires is for y'all to exist careful at each stride and give yourself the selection to go back to the original version until the terminal possible moment (in instance of any issues).

Have y'all migrated your WordPress website recently? Let united states know your experience with the process in the comments section below!

vandusenthumbeth.blogspot.com

Source: https://www.wpexplorer.com/migrating-wordpress-website/

Related Posts

0 Response to "only homepage work after uploading wordpress website"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel