Linux 软件免费装
Banner图

Fstyle Static HTML Export

开发者 fstylegear09543
更新时间 2026年11月7日 08:02
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

html export broken links static static site

下载

0.3.2 0.3.3

详情介绍:

Fstyle Static HTML Export crawls your own site and saves every page, together with the CSS, JavaScript, images and other files it uses, as plain HTML files. You can upload the result to any web server or open it locally. Shared hosting often answers "429 Too Many Requests" when many pages are fetched at once. Instead of skipping those pages, this plugin slows down and retries, and when the export is done it lists the broken internal links and the parts of the site (forms, search, admin-ajax.php, REST API calls) that will not work on the static copy. Everything runs on your own server, with no external service. Features The exported files are saved in wp-content/uploads/fsse-export/{date-time}/. The plugin places .htaccess and an empty index.html in that folder so that the files cannot be accessed from outside. On nginx, .htaccess is not used: configure the server so that this folder cannot be accessed from outside. WP-CLI wp fsse export [--concurrency=<n>] [--url-mode=<relative|absolute>] [--target=<url>] [--alias=<hosts>] [--exclude=<prefixes>] [--changed] [--resume=<id>] [--dir-index] [--skip-ssl-verify] [--zip] [--json] wp fsse report <id> prints the result of an export as JSON.

安装:

  1. Upload the fstyle-static-export folder to /wp-content/plugins/, or install the plugin from the Plugins screen.
  2. Activate the plugin.
  3. Go to Tools > Static HTML Export.
  4. Optionally click Check before export to see which parts of your site will not work as static HTML.
  5. Click Export everything. Keep the page open until the export has finished, then download the zip or copy the folder.
On shared hosting, start with 2 to 3 concurrent requests. On a local copy of the site you can use more (WP-CLI uses 12 by default).

屏幕截图:

  • Progress during an export, including retries after 429 responses.
  • The result: pages, files, broken links and URLs that could not be fetched.
  • The pre-export check listing forms and other parts that do not work on a static site.

常见问题:

Does the plugin send any data to external services?

No. The plugin only sends HTTP requests to your own site (the home URL and the domains you list as "Domains treated as this site"). Nothing is sent to the plugin author or any third party, and no tracking is included.

What does not work on a static site?

Anything that needs PHP or the database when a visitor uses it: comment forms, the built-in search, contact forms, login, admin-ajax.php and REST API calls (likes, view counters, infinite scroll, etc.), and nonces (they keep the value from the export time and are rejected after a few days). The pre-export check and the result screen list the pages where these were found, so you can replace them (for example with an external form service) or exclude those URLs.

Where are the files saved? Are they deleted when I uninstall the plugin?

In wp-content/uploads/fsse-export/. The plugin adds .htaccess (Apache) and an empty index.html to this folder so that the exported files and zip files cannot be opened directly from outside; download the zip from the plugin screen. On nginx, configure the server so that this folder cannot be accessed from outside. Uninstalling the plugin deletes only its settings. The exported files are kept; delete the folder yourself if you no longer need it.

The export stopped in the middle.

Click Resume. Progress is saved after every step. If your server limits requests, lower the number of concurrent requests in the settings. With WP-CLI, use wp fsse export --resume=<id>.

My site uses a self-signed certificate in a local environment.

SSL certificates are verified by default. If your local copy of the site uses a self-signed certificate, the requests to your own site will fail. In that case, check Do not verify SSL certificates in the settings (it is off by default), use wp fsse export --skip-ssl-verify, or add this filter: add_filter( 'fsse_verify_ssl', '__return_false' );. Do not turn verification off on a public site.

How large a site can it export?

There is no fixed limit on the number of pages. Progress is saved after every step, so a long export can be resumed, and WP-CLI (wp fsse export) runs without the time limits of a web request. On shared hosting, a few thousand pages take a while because the plugin keeps the number of concurrent requests low when the server is busy.

Are page builders, pagination, feeds and sitemaps exported?

The plugin saves the HTML your site actually serves, so pages made with a page builder are exported as they look. Pagination pages are exported when they are linked. Feeds are saved as feed/index.xml, and the sitemaps are read to find pages. Parts that load content with admin-ajax.php or the REST API after the page opens will not work; the pre-export check lists them.

Is the plugin translated?

The plugin is translation-ready (text domain fstyle-static-export). Translations are provided through translate.wordpress.org. A Japanese translation has been submitted there.

更新日志:

0.3.3 0.3.2 0.3.1 0.3.0 0.2.0 0.1.0