Linux 软件免费装
Banner图

Aouwal Static Site Export – Static Site Generator

开发者 aouwal
更新时间 2026年12月1日 15:23
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

jamstack static site generator static html wordpress export cloudflare pages

下载

1.0.2 1.14.0 1.11.0 1.12.0 1.1.0 1.1.1 1.15.0 1.16.0 1.17.0 1.1.2 1.2.0 1.3.0 1.6.0 1.7.0 1.0.3 1.10.0 1.4.0 1.9.0 1.13.0 1.5.0 1.8.0

详情介绍:

Aouwal Static Site Export is a WordPress Static Site Generator that converts dynamic WordPress websites into static HTML websites. Export complete websites including CSS, JavaScript, images, fonts, sitemap.xml and robots.txt for deployment on Cloudflare Pages, GitHub Pages, Netlify or any static web server. The export is a plain folder of HTML files and assets. You can commit it to GitHub and deploy it on Cloudflare Pages, or host it on any static host or CDN. No WordPress, PHP or database is needed to serve it. Author: Abdul Aouwal, Technical SEO Consultant. Export WordPress to static HTML The plugin turns your published WordPress pages into plain static HTML files. It works in six steps:
  1. It discovers every public URL.
  2. It renders each one through the WordPress HTTP API and keeps the HTML.
  3. It downloads and localizes assets, including recursive CSS url() and @import references.
  4. It rewrites internal links, removes server-side features and packages the result into one ZIP.
You can export: WordPress static site generator features Deploy to Cloudflare Pages Cloudflare Pages is the fastest path to a live static site. The export already includes the _redirects and _headers files Cloudflare Pages expects, and the Deploy tab walks you through creating a GitHub repository and connecting it to Cloudflare Pages. Once the repository is connected, every push redeploys the site automatically. Export to GitHub Pages The same export folder works on GitHub Pages. Commit the exported files to a repository, enable Pages for the branch or folder you pushed, and GitHub serves the static HTML. Relative links work as they are, so no extra configuration is needed. Netlify, Jamstack and any static host The output is a plain folder of HTML files and assets, which makes it a good fit for any Jamstack workflow. Upload it to Netlify (which also reads _redirects and _headers), Amazon S3, Vercel, a CDN, or any static hosting account. No WordPress, PHP or database is needed to serve it. Automate exports Settings > Automatic exports runs an export after a post is published, updated or deleted, or hourly, twice daily or daily. A publish run waits a couple of minutes, so a burst of edits produces one build. Automatic runs share the export lock and wait when an export is paused. The event is removed on deactivation and recreated on activation. For full control, use WP-CLI with your own scheduler: wp aouwal-static-site-export run --batch=10 --format=json --zip=/var/www/builds/site.zip > /tmp/export.json The JSON object contains job_id, mode, counts (done, error, skipped, total), output_dir, zip, bytes, duration, timestamps and deployment results; log lines go to stderr. Unzip the ZIP into the repository your host watches, or copy the tree with --output-dir=/var/www/static-repo --force, then commit and push. Exit codes: 0 clean, 1 failed items or cancelled, 2 could not start (running export, invalid flag or path, missing PHP zip extension). Two runs cannot overlap: the second exits 2 with the running job ID, and a lock older than 20 minutes is ignored. Serve a static site from WordPress Not every site can move to a separate host. Settings > Static mode serves the last finished export to anonymous visitors while the admin and dynamic features keep working. Static mode is a snapshot cache, not a full page cache plugin: it does not vary pages by cookie, device or role beyond the bypass list. Keep it off when most traffic depends on sessions or personalization. Pause, resume or cancel an export The Export screen has three controls next to the Start button, so a long crawl no longer has to be left running or killed by closing the tab. Pause and cancel take effect between batches, so a running batch finishes first and a cancel can take a few seconds. The next request repeats the cleanup, so nothing is lost. The state is stored on the server, so reloading the screen shows a paused export with its Resume and Cancel buttons. The loop never restarts on its own, because two open tabs would both drive the same queue. WP-CLI has the same controls for a crawl started from the command line: wp aouwal-static-export status wp aouwal-static-export cancel wp aouwal-static-export resume --batch=10 status prints the phase, the processed and pending counts and the last URL, which is handy in a cron log. cancel exits with 1 so a script stops before pushing a partial build. Changed-only export for large sites By default every export re-crawls every page and re-downloads every asset. Settings > Export mode adds a second mode for sites where that takes too long. What a changed-only run re-exports: Unchanged pages are not even requested: their stored fingerprint matches, so the copied file is kept as is. It falls back to a full export when the previous files cannot be trusted: a different plugin, WordPress or theme version, a different permalink structure or site URL, or any setting that changes the output. A missing previous folder or a failed copy also forces a full run. Files for content that was deleted are removed from the new export, and the log names how many were dropped. A URL that failed keeps its old file and is retried on the next run. Run it once from the command line without changing the saved setting: wp aouwal-static-export run --changed-only --batch=10 wp aouwal-static-export run --full Data stored: one row per page and asset in a custom table ({prefix}aouwal_export_state) holding the URL hash, fingerprint, ETag, Last-Modified, size and the last export that confirmed it. The table is removed when the plugin is uninstalled. Large sites (1,000+ pages) Discovery, crawl and ZIP packaging are chunked and resumable. Batch size is 1 to 50, default 5; use WP-CLI for large sites. See the large-site FAQ for progress, memory, timeouts and changed-only caveats. Deploy from WordPress to GitHub and Cloudflare Pages The Deploy tab pushes a finished export to GitHub, Cloudflare Pages or Netlify without downloading, unzipping and pushing by hand. Each target is off by default and hidden until enabled, and each has its own Test connection, Deploy automatically option and Deploy button. "Deploy all enabled" runs every enabled target. Tokens are stored encrypted, never shown again, and a failed deployment keeps the local ZIP so it can be retried. GitHub GitHub needs the repository owner, repository name, branch, optional folder and a personal access token with contents write access. Only changed files are uploaded, one commit is created per run, and a missing branch is created from the default branch. Removing files that are no longer in the export is opt-in. For a first deployment of thousands of files, run wp aouwal-static-site-export deploy from the command line to avoid a web request timeout. wp aouwal-static-export deploy Cloudflare Pages The Cloudflare target uploads the export to a Pages project with the direct upload API. Use it when the Pages project is not connected to a Git repository. If the project already builds from a GitHub repository, use the GitHub target and let Pages rebuild from the new commit. Cloudflare Pages needs the 32-character account ID, the project name (not the .pages.dev hostname) and an API token with Pages Edit access. Only missing file hashes are uploaded, and _headers and _redirects are included. Leave the branch blank for production, or enter a branch for a preview deployment. Limits: Cloudflare Pages accepts up to 20,000 files per deployment and 25 MB per file. The plugin stops with a clear message before uploading when the export exceeds either limit. Optional cache purge: set the 32-character zone ID and tick "Purge the zone cache after every Cloudflare deployment". The API token then also needs Zone > Cache Purge permission. A purge runs only after a successful deployment, so a removed file stops being served from the edge cache. Pages keeps every deployment as a preview, so removing content from the export does not delete the previous deployment; the new deployment simply no longer serves it. Test connection reads the project before anything is uploaded. Netlify The Netlify target uses the file digest API. It needs the Project ID (also called Site ID) and a personal access token from Applications > Personal access tokens. Every file is a SHA1 entry in the manifest. Netlify returns the hashes it lacks, only those are uploaded, and the deploy replaces the previous file set atomically. The token is encrypted and never logged. Test connection reads the site first; a failed deploy keeps the local ZIP. Why use a static WordPress website A static website is faster and safer: no PHP and no database, just small HTML files served from a CDN. There is much less to attack: no login page, no plugin endpoints and no database on the public server. Keep WordPress for writing, and export a fresh copy when content changes. What the export cleans up Not suitable for A static site has no PHP or database, so server-side features stop working: Keep WordPress, or replace them with hosted services before going static: forms, search and checkout. Static export suits blogs, documentation, portfolios, marketing pages and company sites.

安装:

  1. Upload the aouwal-static-site-export folder to /wp-content/plugins/.
  2. Activate the plugin in the Plugins screen.
  3. Open the Static Export menu and configure the settings.
  4. Run an export, then download the ZIP file.
  5. Follow the Deploy tab to publish the site.

屏幕截图:

  • Run the export and follow the live progress log, then download the finished ZIP.
  • Deploy with the built-in GitHub and Cloudflare Pages steps, including the generated _redirects and _headers notes.

升级注意事项:

1.17.0 Adds custom _headers rules, a custom 1–168 hour export interval, and Apache .htaccess / copyable nginx rules for static hosting. All new settings are opt-in; existing exports are unchanged. 1.16.0 Makes large exports reliable: discovery, crawl and ZIP packaging now run in resumable chunks. No action needed; existing jobs in progress continue, and no settings change. 1.15.0 Adds an optional llms.txt index for AI crawlers and a cleanup option that removes WordPress API and discovery links from exports and from Static mode response headers. Both are on by default; no action needed. 1.14.0 Adds an optional Static mode that serves the last export from WordPress itself, with a maximum age, purge and automatic background rebuild. Adds automatic exports after a publish, update or delete, or hourly, twice daily or daily. Both are off by default, so nothing changes until you enable them. 1.13.0 Adds optional HTML minification and pre-compressed .gz sidecars for nginx gzip_static. Both are off by default, so nothing changes until you enable them. 1.12.0 Adds machine-readable WP-CLI output, --output-dir/--zip overrides for cron and CI, documented exit codes and an export lock that prevents overlapping runs. Default output is unchanged. 1.11.0 Adds optional direct deployment to Cloudflare Pages and Netlify, with hash-based upload of changed files and per-target automatic deploy. Off by default, so nothing changes until you enable it. 1.10.0 Adds optional direct deployment to GitHub from the Deploy tab, with token-only setup, changed-file upload and automatic deploy after each export. Off by default, so nothing changes until you enable it. 1.9.0 Adds a changed-only export mode that reuses the previous export and re-exports only changed pages and assets, plus WP-CLI --changed-only and --full flags. Full export stays the default, so nothing changes until you switch modes. The database upgrade runs automatically. 1.8.0 Adds automatic retries for transient crawl failures, a crawl health report naming every failed URL and its reason, and a "Retry failed" action plus a WP-CLI retry command. No action needed. 1.7.0 Adds an optional path rewrite that moves /wp-content/uploads/ to a shorter folder such as /uploads/ or /media/ in the export. Off by default; existing exports are unchanged. No action needed. 1.6.0 Adds Pause, Resume and Cancel to the Export screen, so a long crawl can be stopped and continued without losing progress and a wrong export can be cleaned up. New WP-CLI status, cancel and resume commands. No action needed. 1.5.0 Adds a Network settings section: request timeout, delay, concurrency, custom crawl origin, TLS verification and HTTP Basic Auth for staging sites. Defaults keep the previous crawl behavior, so nothing changes until you edit the settings. 1.4.1 Documentation only: real batch size limits, a WP-CLI, cron and Git deployment recipe, and an answer on scheduling and automatic publishing. No action needed. 1.4.0 New name: Aouwal Static Site Export – Static Site Generator. Archives now export their pagination (page 2 and later), HTML5 markup such as picture, source, track and template survives, and SVG sprite fragments are kept. Adds automated checks and a translation template. No action needed. 1.3.0 Adds a Maximum asset size setting (25 MB default), reports failed file writes instead of marking them done, validates every redirect against the SSRF guard, resolves IPv6, and only uses your theme 404 template for real 404s. No action needed. 1.2.0 Several settings now work as described: comment removal, the _redirects file and the RSS feed rules are honoured, and a new setting controls the _headers file. Dotted slugs, .php URLs and subdirectory installs now export to the correct paths. Check the Generated files settings after updating. 1.1.2 Fixes a late failure on hosts without the PHP zip extension. The export is now refused up front with a clear message instead of after a full crawl. Update recommended. 1.1.1 Housekeeping release: removes unused localized admin data and corrects the README project structure. No behaviour change; update at your convenience. 1.1.0 Security release. Export ZIPs now download through signed, expiring links instead of a permanent public URL, and the export folder is protected from direct access. Recommended for every site. 1.0.3 Fixes link hint handling and localizes web app manifest icons in exports. Update recommended. 1.0.2 All remote requests now use the WordPress HTTP API. Update to stay secure and compliant with the WordPress.org plugin guidelines.

常见问题:

How do I export WordPress to HTML?

Install and activate the plugin, open Static Export in the admin menu, choose which post types and archives to include, then run the export. The plugin renders every page, localizes the assets and builds a ZIP file. Download the ZIP, unzip it, and upload the folder to your static host. The Deploy tab has the full walkthrough for GitHub and Cloudflare Pages.

What does Aouwal Static Site Export do?

It is a static site generator for WordPress. It converts your WordPress site into a static HTML site. The plugin crawls each public page, saves the rendered HTML, downloads and localizes all assets, and packages the result into a ZIP file. You can then host the site anywhere without WordPress, PHP or a database.

Does it support custom post types?

Yes. Every public post type is listed in Settings and you choose which ones to export. Products, portfolio items, documentation pages and other custom post types are exported with the same permalink structure they use on your WordPress site.

Does it work with Elementor?

Usually yes. Elementor renders its layout to HTML and CSS on the server, so pages export with their design intact. Widgets that need a server, such as forms, popups with dynamic content and logged-in-only sections, cannot work on a static host and should be tested before you publish.

Does it work with WooCommerce?

Product and category pages can be exported, so a product catalog works as a static site. The cart, checkout, my-account and product search pages are dynamic, so they cannot work without WordPress. The plugin does not convert WooCommerce into a static shop.

Does it export images?

Yes. Images are downloaded and stored in the uploads structure the HTML expects, including srcset and <picture> sources. Images served from a CDN or another domain are localized too when they are reachable. Any single asset larger than the Maximum asset size setting (25 MB by default) is skipped and listed in the log.

Does it export CSS and JavaScript?

Yes. Stylesheets and scripts are downloaded and rewritten to local paths, including CSS url() and @import references, so icons, fonts and background images keep working. Inline styles and inline scripts stay in the page. Files are not minified or combined, so the export matches what your site already serves.

What happens to search and comments?

Search and comments are server-side features, so they cannot run on a static host. The plugin removes search forms, comment forms, comment sections and comment feeds from the export by default. Both cleanup steps can be turned off in Settings, for example when you only need a partial static copy. There is no built-in replacement for them.

Does the export include any credit or branding?

No, not unless you enable it. In Settings, under Attribution, you can turn on an invisible, source-code-only credit. It is off by default and never appears in the browser or in the exported pages your visitors see.

Can I deploy to Cloudflare Pages?

Yes. The export includes _redirects and _headers files, which Cloudflare Pages reads automatically, and the Deploy tab gives you the GitHub and Cloudflare Pages steps. Connect the repository once and every new export redeploys the site.

Can I add custom _headers or server rules?

Yes. Settings > Cleanup & output > Generated files has a Custom _headers box. Enter _headers syntax: a path on its own line, then indented Name: value lines. The block is written before the generated cache rules, so it can override cache or add security headers; invalid input is rejected with a notice and the previous value is kept. Tick "Apache .htaccess file" to include a static-hosting .htaccess in the ZIP with pretty 404, cache headers, compression and dotfile protection. The Deploy tab also shows copyable Apache and nginx snippets. nginx ignores .htaccess, so use the nginx snippet on nginx.

Can I schedule exports or publish automatically?

Yes. Settings > Automatic exports has six choices: off (default), after a post is published, updated or deleted, hourly, twice daily, daily, or a custom interval from 1 to 168 hours. Publish mode waits a couple of minutes after the last change and then runs one export, so a burst of edits produces a single build. Time-based modes use WP-Cron and keep the same chunked exporter, so a large site does not hit a timeout. Automatic runs share the export lock: a manual export, an automatic export and a WP-CLI run never overlap, and a paused export delays the next automatic attempt instead of being replaced. The recurring event is recreated when the plugin is activated and removed when it is deactivated. Direct deployment to GitHub, Cloudflare Pages and Netlify then runs after the export when automatic deploy is enabled for that target. For deploys that need git operations outside the plugin, use cron with wp aouwal-static-site-export run --batch=10; the "Automate exports with WP-CLI and cron" section has the exact commands.

Can I host the exported site anywhere?

Yes. The output is plain HTML, CSS, JavaScript and media, so it runs on any static hosting or CDN: Netlify, GitHub Pages, Cloudflare Pages, Amazon S3, Vercel, or a basic web host. No WordPress, PHP or database is required.

Can I serve the static site without moving hosting?

Yes. Enable Settings > Static mode, set Maximum age and run an export. Anonymous page requests are then served from the last finished export, and WordPress renders anything that is not a fresh static file. Logged-in users, forms, REST, AJAX, previews and WooCommerce cart, checkout and account pages always use WordPress. This is a read-only snapshot: comments, search and forms still need a dynamic service.

How does static mode stay up to date?

Updating or publishing a post deletes that page, the home page and the posts page right away, then schedules a background rebuild. Every served file also expires after the Maximum age setting, after which WordPress renders the page while the rebuild runs. Purge static cache does the same on demand. The export ZIP is never touched by a purge.

Can I export a site that is served by static mode?

Yes. The exporter marks its own loopback requests, so a re-export always reads live WordPress output instead of the copy it is about to replace. If an export takes very long, visitors may see a page that is one export behind until the next rebuild finishes.

Do I need to know how to code?

No. You run the export from the WordPress admin and download a ZIP file. The Deploy tab gives you copy-and-paste commands for GitHub and Cloudflare Pages, so you can publish the site without writing any code.

Does it generate llms.txt for AI crawlers?

Yes. Every export includes llms.txt with the site title, the tagline as a summary, and sections for pages, posts and other exported post types. Each entry is - [Title](absolute URL): short excerpt. Only URLs that were actually exported are listed, so drafts, excluded URLs and disabled post types stay out. Links use the site URL, or the Public URL setting when one is set. Turn it off under Settings > Cleanup & output > Generated files. sitemap.xml is still generated for search engines.

Does the plugin change my live site?

No, not by default. The plugin only reads your content and writes the export to a files folder inside your own WordPress uploads directory. Your live site, database and settings stay unchanged, and you can delete the export files at any time. The optional Static mode is the one exception: when you enable it, anonymous visitors are served from the last finished export until you disable it or purge the cache.

Where are export files stored, and are they public?

Exports are written to wp-content/uploads/aouwal-static-site-export/, the same area WordPress uses for its own export files. The folder is protected from browsing with an index.php file and, on Apache, a .htaccess deny rule. The ZIP is served only through a signed, expiring admin link, never a permanent public URL, and the file disappears when the job is pruned. Nginx ignores .htaccess, so on Nginx either add a deny rule for wp-content/uploads/aouwal-static-site-export/ or move exports outside the web root. Developers can relocate the directory with the aouwal_export_dir filter.

Which WordPress and PHP versions are supported?

The plugin requires WordPress 6.0 or later and PHP 7.4 or later. It is tested up to WordPress 7.1. It uses only the WordPress HTTP API and the WordPress filesystem, so it works on standard shared hosting.

Can I update the exported site later?

Yes. Run a new export to create a fresh ZIP, then push the updated files. On Cloudflare Pages, every push to your connected repository redeploys the site automatically, so updates take only a few minutes.

Can I export only the pages that changed?

Yes. Set Settings > Export mode to "Changed-only export", or run wp aouwal-static-export run --changed-only. The export starts from the last one, keeps every file whose page or asset did not change, and re-exports edited posts, the archives that contain them, the homepage, the posts page and any asset whose ETag or Last-Modified changed. A changed-only run is much faster on a large site because unchanged pages are not requested at all and unchanged assets answer 304 Not Modified. The mode falls back to a full export automatically after a plugin, WordPress or theme update, a permalink or site URL change, or any setting that affects the output. Full export stays the default.

Does a changed-only export upload the whole site again?

Yes, the ZIP still contains the complete site, because the export is a static snapshot rather than a patch. The saving is in the crawl: only changed URLs are fetched and rewritten, and unchanged files are copied from the previous export. If you deploy with rsync or Git, your sync tool still transfers only the files that differ.

Can I deploy to GitHub from WordPress?

Yes. Open the Deploy tab, enable GitHub, and save the repository owner, repository name, branch and a personal access token. Then press "Deploy last export", or turn on automatic deployment so every successful export is pushed. The token needs contents read and write access for that repository; a fine-grained token limited to the single repository is enough. It is stored encrypted, never shown again and never written to the ZIP or the log. Only changed files are uploaded, using a git blob hash comparison, and one commit is created per deployment. Cloudflare Pages, Netlify and Vercel still deploy the new commit automatically when the repository is connected to them.

What happens if a GitHub deployment fails?

The Deploy tab shows the GitHub error text, such as Bad credentials or a permission message. The local ZIP and the export folder are kept, so you can fix the token or branch and press "Deploy last export" again without re-running the crawl. A failed deployment never changes the export result: the pages that were exported stay exported, and a partial commit is not left behind because the branch ref is updated only after the commit object exists.

Can I deploy to Cloudflare Pages from WordPress?

Yes. Open the Deploy tab, enable Cloudflare Pages, and save the account ID, the project name and an API token with the Cloudflare Pages permission set to Edit. Then press "Deploy last export", or enable automatic deployment. The target uploads the export with the Pages direct upload API. It hashes every file, uploads only the hashes the project does not have yet, and creates one deployment with the full manifest. _headers and _redirects are included as Pages configuration. The project must be a direct upload project. If it is connected to a Git repository, use the GitHub target instead: pushing a commit makes Pages rebuild the site automatically.

Why does the Cloudflare target reject my project?

The direct upload API only works with a Pages project that is not connected to Git. A Git-connected project builds from the repository, so uploading files to it is not possible. Either create a second project with Direct Upload, or enable the GitHub target and let the connected project rebuild. The other limits are 20,000 files per deployment and 25 MB per file. The plugin checks both before uploading and reports which file is too large.

Can I deploy to Netlify from WordPress?

Yes. Open the Deploy tab, enable Netlify, and save the Project ID plus a personal access token from Applications > Personal access tokens. Then press "Deploy last export" or enable automatic deployment. The plugin sends a SHA1 manifest, Netlify replies with the files it does not have, and only those are uploaded. Netlify then publishes the deploy atomically, so the new file set replaces the old one and removed content disappears. If the site answers 401 or shows a login page, the Netlify project is protected by team SSO or a site password. Set the project to public in Netlify, or disable SSO for that site, before deploying.

Does the plugin minify HTML or pre-compress files?

Yes, both are opt-in in Settings > Performance. HTML minification removes whitespace between tags and normal comments. Text spacing, conditional comments, the credit comment and the contents of pre, textarea, script and style stay byte-identical, so the page renders the same. Pre-compressed files adds file.ext.gz next to HTML, CSS, JS, JSON, SVG and XML. It is meant for nginx gzip_static; Cloudflare Pages and Netlify compress on the fly and may ignore the sidecars, and GitHub Pages does too. The ZIP includes them. If the server has no PHP zlib extension the option is hidden.

Does the plugin work on large sites?

Yes. The crawl runs in batches, and each batch is one request, so a PHP timeout applies to a batch, not to the whole site or to a single page. Batch size is set in Settings and accepts 1 to 50. The default is 5, so a 2,000-page site already exports in 5-page requests. Do not set 50 or 100: 50 is the maximum and 100 is not accepted. Lower it to 2 to 5 on shared hosting, raise it to 10 to 20 on a fast server. WP-CLI uses 10 URLs per batch by default: wp aouwal-static-export run --batch=10 Memory: 256 MB is the practical minimum and 512 MB is comfortable for large media libraries. Any single asset larger than the "Maximum asset size" setting (25 MB by default) is skipped and listed as an error in the log, so one huge video or archive cannot run the export out of memory. Discovery, crawling and packaging are all chunked. Discovery stores a cursor and resumes after an interruption; the crawl uses the batch size; packaging writes the ZIP in file chunks. The progress line shows "Discovered X URLs", "Processing" and "Packing X of Y files", and pause/resume works in all three phases. If a phase still hits a limit, lower the batch size, exclude heavy post types, raise max_execution_time temporarily, or run the export with WP-CLI.

Can I export a staging site protected by HTTP Basic Auth?

Yes. Enter the username and password in Settings > Network > HTTP Basic Auth, then run the export as usual. The plugin sends the Authorization header only to your site's own hosts, so credentials never reach Google Fonts, a CDN or a Gravatar, and the header is dropped when the origin redirects to another domain. The password is stored encrypted and is never rendered back into the settings page or written to the export log. Leave the password field blank to keep the saved value; tick "Remove stored credentials" to delete it. Basic Auth only: cookie-based protection and WordPress "site password" plugins are not supported, and without credentials a protected site still logs HTTP 401 for every URL.

Why does the export time out or get rate-limited?

Two settings in Settings > Network control it. Raise "Request timeout" (60 seconds by default, up to 120) when a single slow page or a large file is abandoned. Add a "Delay between requests" of 200 to 1000 milliseconds when your host or a security plugin rate-limits the crawl. If PHP itself runs out of time, lower "Batch size (concurrency)" instead, because each batch is one PHP request. The same values are available for a single run with WP-CLI: wp aouwal-static-site-export run --timeout=90 --delay=250 --batch=5.

Can I crawl through a Docker container or a reverse proxy?

Yes. Set "Custom crawl origin" to the URL the server can actually reach, for example http://wordpress:8080 for a container name or http://127.0.0.1:8080 for a local proxy. The crawler requests pages and assets from that origin, while every link, canonical URL and sitemap entry still uses the normal site URL, so the exported site is identical to a direct crawl. The origin host is trusted like the site host, so it does not have to be publicly routable. Link-local and cloud metadata addresses such as 169.254.169.254 are always refused, and the origin URL cannot contain a username or password. On a proxy that uses a private certificate authority, choose "Verify against a custom CA bundle" and enter the absolute path to the PEM file on the server.

Is the exported site good for SEO?

Yes. The export keeps your page URLs, titles and content, generates a sitemap.xml and robots.txt, and strips version tags and staging "noindex" meta. Because the pages are static HTML, they load quickly and are easy for search engines and AI systems to crawl.

Can I move or remove /wp-content/uploads/ from the exported URLs?

Yes, optionally. In Settings > Paths, turn on "Rewrite uploads path" and choose a target folder such as "uploads" or "media". When enabled, every reference and file uses the new folder: /wp-content/uploads/2026/01/photo.jpg becomes /uploads/2026/01/photo.jpg, including HTML attributes, CSS url() and @import references, srcset variants and manifest icons. The setting is off by default, so the export keeps the live /wp-content/uploads/ structure byte for byte when it is disabled. It changes URLs only and does not remove other WordPress fingerprints such as generator meta tags or already-localized script paths. Trade-off: old /wp-content/uploads/ links stop working unless you add redirects. The _headers cache rule follows the configured folder. A path that collides with an existing page is reported as an error and is not overwritten.

Can I pause or cancel an export that is already running?

Yes. The Export screen shows Pause and Cancel buttons while an export runs. Pause stops at the end of the current batch and keeps every page and asset already written, so Resume can continue from the next pending URL. Cancel stops the export and deletes the partial output folder and any ZIP, so a wrong or failed export leaves nothing on disk. Both actions are recorded in the log. A cancel adds a line naming the last URL that was processed and how many items had been exported, and the same line is still there after a page reload.

Can I resume an export after closing the browser?

Yes, if you paused it first. The state lives in the database, so reopening the Export screen shows the paused export with its Resume and Cancel buttons and the counts it reached. The crawl does not restart on its own, because two open tabs would otherwise drive the same queue at the same time. An export that was never paused and whose tab was simply closed stays in the "crawling" phase. The screen detects that no batch has touched the output folder for five minutes, marks it as interrupted, and offers Resume or Cancel. From the command line, wp aouwal-static-export status shows the same state.

What happens to the files when an export is cancelled?

They are deleted. Cancel removes the job's output folder and its ZIP, plus the remaining queue rows, so a cancelled export cannot be downloaded or resumed by mistake. Other completed exports are untouched and stay downloadable. The last processed URL is kept in the job log, which is the quick way to see where the crawl stopped. If you cancel because the settings were wrong, fix the settings and start a new export; it begins from a clean folder.

What happens when a page fails to export?

The export retries transient failures automatically. A timeout, an HTTP 429 or a 5xx response is tried again up to two times by default, with a short backoff and respect for the Retry-After header. Permanent errors such as 401, 403 or 404 are not retried, because a second attempt would fail the same way. After the run, the Crawl health section on the Export screen lists every failed URL with its HTTP status or error text, the number of attempts, and the page that linked to a failed asset. The final log line lists the failure reasons too.

Can I retry only the pages that failed?

Yes. When the last export finished with failures, the Export screen shows a "Retry failed" button. It requeues only the errored items, keeps every file that was already written, and rebuilds the ZIP in place, so a single timeout does not force a full re-crawl. From the command line, run wp aouwal-static-export retry. Add --batch=5 to lower the concurrency. The command exits with 1 if failures remain, so a cron job can stop before deploying a partial build.

更新日志:

1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.4.0 1.3.0 1.2.0 1.1.2 1.1.1 1.1.0 1.0.3 1.0.2 1.0.1 1.0.0