You can move a WordPress site by exporting the contents as an .xml file, then importing the file to a different WordPress site. For example, if you are leaving the university you can export a blog from Blogs at UMass Amherst, then import the content to a different hosting service.
When moving a blog keep in mind:
- If you are leaving the university, be sure to attend to this task before you lose login access to your site on Blogs at UMass Amherst.
- The XML file contains all posts and pages.
- Media (images and other attachments) is not included in the .xml file. If the source site is live you will have the option to copy over the Media Library to the destination site.
- Once the content is imported you may need to choose a theme, activate plugins and set up widgets and menus.
- Imported content will be added to whatever content is already on the site. You may want to unpublish or delete the Sample Page and “Hello World” Post that come with a new WordPress site.
- Log in to the Dashboard of the site you wish to copy and in the left Toolbar go to Tools > Export. The Export page opens.
- On the Export page, under Choose what to export, select All content, and click Download export file. Opt to save the file to your computer.
- On your computer, locate the XML file. The file will be called "nameofyoursite.WordPres.yearmonth-day.xml."
To import a WordPress .xml file to another WordPress site in three steps.
Step One: Add Authors if Needed
- Log in to the Dashboard of the site into which you will import the .xml file.
- Before importing, if you wish to add additional authors or administrators, in the left Toolbar, go to Users > Add Users. Users must have a UMass Amherst NetID. For details, see Add Co-Authors and Member to Your Blog.
Step Two: Activate the Import Plugin
- In the left Toolbar, go to Plugins. The Plugins page opens.
- On the Plugins page, locate and activate WordPress Importer.
Step Three: Import the XML file
- In the left Toolbar, go to Tools > Import. The Import page opens.
- On the Import page, under WordPress, click Run Importer. The Import WordPress page opens.
- On the Import WordPress page, click Browse and select the .xml file to import, then click Upload and import file. The page changes to ask if you wish to assign authors or import attachments..
- Under Import Author (optional), for each author from the old site use the drop-down menu to select an existing author on the new site to whom you wish to assign authorship for posts.
- Under Import Attachments, check Download and import file attachments.
Unless you have very few images on your old site, choose this option! Otherwise you’ll need to manually download images and attachments from the old site, upload the files to the new, and re-insert them on the pages, posts, or in Customizer options where the images were used.
IMPORTANT: To import media, this step requires the source site to be live online.
- Click Submit. The import may take some time, depending on the number of pages and amount of media to import. A success message will appear when complete.
- Be sure to check the imported site’s theme, plugins, widgets, menus and other custom settings by comparing against the source site.