This tool post-processes exported Simply Static folders and rewrites paths so the site works offline.
- Fixes tool: 0.3.12
- WordPress plugin: 0.8.4 (disabled — use the fixer instead; see header in
add-this/simply-static-portable-paths.php)
simply-static-fixes/
index.php # Web UI
fix.php # Rewrite logic
add-this/ # Plugin to install in WordPress before export
sites/ # Put exported sites here (one folder per site)
reports/ # Run version counter (increments on apply)
- Export with Simply Static.
- (Optional) The plugin in
add-this/is currently disabled due to buggy exports — rely on the fixer instead. - Unzip the export and place it under
simply-static-fixes/sites/<site-name>. - Open
simply-static-fixes/index.phpin your local PHP server. - Select the site and run a dry run first (leave “Apply changes” unchecked).
- If the stats look right, run again with Apply changes checked.
- A backup zip (e.g.,
sites/<site-name>.zip) is created automatically before applying changes. Use “Restore from backup” to revert.
- Rewrite .local absolute URLs: converts
http(s)://*.local/...and//*.local/...to relative paths with the correct./or../prefix. External/CDN hosts are left as-is. - Apply changes: unchecked = dry run (no writes).
- Root-relative paths are rewritten to the correct
./or../prefix for each file depth. - Home pages should resolve as
./... - Subpages should resolve as
../...(repeated per depth) - Escaped slashes in JSON (
\/) stay escaped. - Files inside
wp-content/andwp-includes/are not path-rewritten (to avoid breaking asset-relative URLs). Only.localabsolute URLs are rewritten there.