Import WordPress Site using WordPress Importer.
On a fresh install of WordPress. If you go to.
Tools > Import
There may not be any available import options.
This tutorial assumes a backup was created by using the Export WordPress Website Using Builtin Export Tool method
Install Plugin
If Tools > Import does not have any suitable option.
Install the “WordPress Importer” plugin
Author: wordpressdotorg
Site: https://wordpress.org/plugins/wordpress-importer/
Delete Sample Posts & Pages
Before importing the websites ensure it is clean and empty
Posts > All Posts > Select All > Move To Trash
Pages > All Posts > Select All > Move To Trash
Import Website
Tools > Import > Run Importer
Import If you have posts or comments in another system, WordPress can import those into this site. To get started, choose a system to import from below: WordPress Run Importer Import posts, pages, comments, custom fields, categories, and tags from a WordPress export file.
Assign Authors
Here you have the opportunity to import an author or assign it to an existing user.
Assign Authors
To make it simpler for you to edit and save the imported content, you may want to reassign the author of the imported item to an existing user of this site, such as your primary administrator account.
Import author: author (author)
or assign posts to an existing user:
Import Attachments
As the import XML file only cantains test. Here you have the option of pulling in uploads/attachments.
Select - Import Attachments Download and import file attachments
Notes
The import file is just XML.
The above import posts, pages, comments, custom fields, categories, and tags.
In order to bring in the media/images/uploads the original website must be online and accessible from the original url.
The original website must also have a valid TLS/SSL certificate
Issues
Issue:Unable to upload the file
You may come across the error.
This write up will detail 2 possible solutions.
Solution 1:Install Plugin
WP Extra File Types
Solution 2: Edit wp-config file
sudo nano /opt/bitnami/apps/wordpress/htdocs/wp-config.php
Insert the following line somewhere above
/* That’s all, stop editing! Happy publishing. */
define('ALLOW_UNFILTERED_UPLOADS', true);
Issue:Unable to Media/Attachments
Solution: Manualy Transfer
The AWS Lightsail WordPress Multisite Instance stores under
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/sites/
Where each new website you add will increment
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/sites/1
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/sites/2
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/sites3
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/sites4
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/sites5
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/sites/6
/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/sites7
etc.
Issue: Internal Server Error
You will get this error if for example you have a big website with lots of media.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at you@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.