-2

I have a WooCommerce website with full working condition have products, comments, pages etc.

I would like to transfer my website from current WordPress hosting to another WordPress hosting. So I downloaded the whole website through FTP (FileZilla). Today I bought a new WordPress hosting and would like to upload all the content in this. while uploading some file where uploaded and some failed. Now my website is getting error.

Is there any way to upload all my files to WordPress hosting?

halfer
  • 19,824
  • 17
  • 99
  • 186
  • if both of your hosting still active, you can ask your new hosting provider to restore backup from old hosting. It's easier and safe.. – rheeantz Jun 16 '17 at 19:54

1 Answers1

0

If you provide a screenshot or any logs about what error you get when you upload your site, that would help us understand the issue and we can tell you exactly what to do.

That being said, there are a number of scenarios and solutions you can follow:

1. Re-Upload your files Just upload your files again and select skip option for files already exist on the server. Make sure all files are uploaded correctly.

2. Upload via cPanel A better option is to zip/compress your files and upload via cPanel File manager. Then extract the zipped files and you're good to go.

Some other situations to think of; 1. What about the database? Did you upload the database from your old hosting/server to the new one? Make sure you do that.

2. Old and new site's URLs The old website (domain) and the new site/domain, are these the same or different? If different then you need to replace URLs as well.

Change URLs by running this query in your database (use phpMyAdmin if you have cPanel)

UPDATE wp_options SET option_value = REPLACE(option_value, 'ORIGINAL_URL', 'NEW_URL');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'ORIGINAL_URL', 'NEW_URL');
UPDATE wp_posts SET guid = REPLACE(guid, 'ORIGINAL_URL', 'NEW_URL');
UPDATE wp_posts SET post_content = REPLACE(post_content, 'ORIGINAL_URL', 'NEW_URL');

Source: WPBeginner

Junaid
  • 1,270
  • 3
  • 14
  • 33