Linux 软件免费装

Fstyle Static HTML Export

开发者 fstylegear09543
更新时间 2026年10月31日 11:22
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. 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.

Is the plugin translated?

The plugin is translation-ready (text domain fstyle-static-export). Translations are provided through translate.wordpress.org.

更新日志:

0.3.3 0.3.2 0.3.1 0.3.0 0.2.0 0.1.0