Export to another host
Turn your site into a folder of plain HTML files that any host can serve, and know what will not come with it.
A standalone static copy of your site
Static mode keeps your site on WordPress: the static pages live in your own installation, on the same domain. The Export screen does something different. It builds a standalone static copy of your site as plain HTML files that you download as a ZIP and put on any host, with or without WordPress.
A standalone copy cannot call your WordPress, so it comes with limits. Forms cannot send anything, and anything that fetches content from WordPress in the background stops working. The plugin tells you what it knows about before you export, and lists what it did in the report afterwards.
- The export never changes your live site.
- Every export replaces the previous one, so it never keeps a page you deleted.
- Nothing is guessed: what cannot work is listed, not patched.
The export is a separate tool from static mode. You can use either one, or both.
Static mode or export?
| Question | Static mode | Export |
|---|---|---|
| Where it lives | In your WordPress, on the same domain. | In a ZIP you host anywhere. |
| WordPress needed | Yes. It keeps running for editing and for forms. | No. The result has no WordPress. |
| Forms | Kept in Hybrid style, replaced in Strict style. | Always replaced by a contact message. |
| Updates | Automatic, when you save or change something shared. | Manual: you generate a new export. |
| Links | Unchanged. | Rewritten as relative paths. |
Choose static mode to speed up your WordPress site. Choose the export when you want to leave WordPress, or to publish a frozen copy elsewhere.
Before you export
Open MyStaticWP → Export. Above the button, the plugin lists what it already knows will not work offline:
- elements that load content in the background (for example a filter or a load-more button), flagged by the compatibility check;
- pages that use a known widget that needs your WordPress to be reachable.
Click an element in the list to open its page in a new tab with that element outlined, and edit it in your builder from the admin bar. You must be signed in for that. If the screen says No known compatibility issue detected, nothing known will be lost.
Set the contact address
Forms cannot send anything from a standalone copy, so each one is replaced by a short message. Fill in the Contact address field to show a mail link under it.
- It is one address for the whole export.
- It is shared with the Switch screen: the same address serves the Strict style, so you set it once.
- Leave it empty to show the message without a link.
- The message speaks the language of each page: French, Spanish, or English for any other language.
Generate the export
- Click Generate export.
- Wait for it to finish. The page waits too, and on a large site this can take a while.
- Click Download ZIP.
It is always a full rebuild. The previous export is deleted first, so a page you removed from the live site never survives in a later export.
What the export contains
| Item | What is included |
|---|---|
| Pages | The front page, every published public page and post, and the blog index and archives, as HTML files. |
| Assets | Only the images, styles, scripts and fonts that the exported pages really use. The plugin fetches each one as a visitor’s browser would. |
| robots.txt | Included when your site has one. |
| Sitemaps | The XML sitemap files of your SEO plugin, or WordPress’s own sitemap, when the plugin finds them. |
| Redirects | The redirects of WP 301 Redirects, as small redirect pages. |
What is changed in the pages
- Links become relative. Every internal link and asset reference becomes a path such as
../about/index.html, with no dependence on a domain name. The copy works in a folder, on any domain, or opened from a disk. - Forms are replaced. Each one becomes a message with your contact address.
The rewriting covers the links and assets an ordinary site uses: link and image addresses, scripts, styles, frames, audio, video, responsive image sets, and background images set in CSS. Attributes outside that list are left as they are, and are not silently ignored: check a page that relies on them.
Redirects
Once the site no longer runs on WordPress, a real server-side redirect is not possible. The plugin turns each redirect rule of WP 301 Redirects into a small page that sends the visitor on, and never overwrites a page that already exists at that address.
- These are client-side redirects. They work for visitors but are weaker for search engines than a real 301 on the new host.
- On the new host, set up real redirects if you need them for search ranking.
- If WP 301 Redirects is not active or has no rules, the report says so.
Read the report
After an export, the screen shows a summary such as: Export finished — 41 page(s) exported (0 failed), 3 form(s) replaced, 210 file(s) copied (0 failed).
| Line | Meaning |
|---|---|
| Pages exported | How many pages were written, and how many failed. |
| Forms replaced | How many forms became a contact message. |
| Files copied | How many assets were included, and how many could not be fetched. |
| robots.txt and sitemaps | Whether they were found and included, and if not, why. |
| Redirects | How many were written as redirect pages. |
| Widgets | The pages that use a known widget that will not work offline. |
The figures above are an example of what the report looks like. Yours will differ.
Widgets that cannot work offline
Some interactive widgets never draw a form, so the form replacement cannot catch them. They still stop working once your WordPress is out of reach. The plugin keeps a short, known list of such widgets, and reports the pages that contain one.
The list is short and grows over time. A widget that is not on it is not flagged, so always click through an exported copy before you publish it.
If the ZIP cannot be built
If the server has no PHP zip extension, the plugin cannot package the files. The screen says so and gives the folder on the server where the exported files are. Ask your host to enable the extension, or fetch that folder with FTP.
Put the copy on a new host
- Unzip the archive.
- Upload the content to the folder of your new site: the root of the site, or a subfolder.
- Open the home page and click through the main pages.
- Check your forms’ replacement message, your redirects and your images.
- Point your domain to the new host when you are satisfied.
Because links are relative, the copy works in a subfolder too.
What has not been tested yet
- The exported files have been checked as files. They have not yet been put on an external host and browsed there.
- Multilingual exports follow the same rules as your saved pages, but have not been checked on a real host either.
- Attributes outside the covered list, such as custom
data-attributes, are not rewritten.
If something looks wrong
- A page is missing from the export. Check that it is published and public. The report lists failures.
- An image or a style is missing. It was probably referenced in a way the rewriting does not cover. Open the page in a browser and look at the failed requests.
- A form does nothing. Forms are replaced in every export. Check that the message and your address are shown.
- A filter or a button does nothing. It loaded content from WordPress. It cannot work offline: replace it before you export.
- The export takes very long. The page waits for the whole site. Generate it at a quiet time.
More help is on the Troubleshooting page. What static pages can and cannot do is in Compatibility & limits.