Title: Distan
Author: youheiokubo
Published: <strong>July 28, 2026</strong>
Last modified: July 28, 2026

---

Search plugins

![](https://ps.w.org/distan/assets/banner-772x250.png?rev=3626410)

![](https://ps.w.org/distan/assets/icon-256x256.png?rev=3626410)

# Distan

 By [youheiokubo](https://profiles.wordpress.org/youheiokubo/)

[Download](https://downloads.wordpress.org/plugin/distan.0.9.13.zip)

 * [Details](https://wordpress.org/plugins/distan/#description)
 * [Reviews](https://wordpress.org/plugins/distan/#reviews)
 *  [Installation](https://wordpress.org/plugins/distan/#installation)
 * [Development](https://wordpress.org/plugins/distan/#developers)

 [Support](https://wordpress.org/support/plugin/distan/)

## Description

Distan turns WordPress into a build environment for static HTML deliverables. You
author in WordPress, then export clean, self-contained HTML that runs anywhere. 
No WordPress, no PHP, and no database are required on the production server.

Unlike static export plugins that mirror a live WordPress site, Distan is built 
for the case where the HTML files themselves are the deliverable. WordPress stays
on the developer’s side and is never published. When an update is needed, you edit
in WordPress, regenerate, and hand over the difference.

This suits agencies that deliver HTML files rather than a CMS — for example recruitment
sites placed under a subdirectory of an existing corporate site, where adding a 
WordPress install is not an option.

**What it does**

 * Generates every published page, the posts archive with pagination, category archives
   with pagination, and a 404 page.
 * Rewrites internal links as document-relative paths, so the output can be opened
   directly and placed in any directory.
 * Flattens WordPress paths: theme files move to `assets/`, uploads move to `media/`.
   The `wp-content` directory disappears from the deliverable.
 * Cleans the HTML: removes the generator tag, REST API links, oEmbed, emoji scripts,
   speculative loading rules, and the development `noindex`.
 * Keeps cache-busting query strings on assets, so file names stay stable and can
   be overwritten over FTP.
 * Reports a diff after each run: which files were added, and which need to be removed
   from production.
 * Audits links and reports any whose target was not generated.
 * Downloads the result as a ZIP.

**Requirements**

The only hard requirement is loopback HTTP (the site being able to request itself).
No direct SQL, no `exec()`, no external binaries, no external APIs. It runs on Local,
MAMP, XAMPP, DDEV, Docker, or shared hosting, and works offline.

**Not for every case**

Distan is not suitable when the client updates the site themselves, when forms, 
search, comments, or membership are required, or for sites of only a few pages.

## Installation

 1. Upload the plugin to `wp-content/plugins/`, or install the ZIP from Plugins  Add
    New  Upload.
 2. Activate it.
 3. Open the **Distan** menu, check the environment, set the public URL, and generate.

The output is written to `wp-content/uploads/distan/dist/`.

## FAQ

### Does the production server need WordPress?

No. The output is static HTML. That is the point: there is no application to attack
or maintain on the production server.

### Do template functions work?

Yes. Generation sends a normal HTTP request per page, so `get_header()`, `get_template_part()`,
template hierarchy, conditional tags, and custom fields all behave exactly as they
do on the live site.

### What does not work?

Anything that needs server-side processing: search forms, comment submission, contact
forms, and membership. Values that depend on the current time (a copyright year 
printed with `date('Y')`, relative dates) are frozen at generation time.

### Can I open the generated files directly?

Yes, with a classic theme. Block themes load their JavaScript as ES modules, which
browsers refuse to load over `file://`. HTML, CSS, images, and links work either
way; use a local server for a complete preview.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Distan” is open source software. The following people have contributed to this 
plugin.

Contributors

 *   [ youheiokubo ](https://profiles.wordpress.org/youheiokubo/)

[Translate “Distan” into your language.](https://translate.wordpress.org/projects/wp-plugins/distan)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/distan/), check out
the [SVN repository](https://plugins.svn.wordpress.org/distan/), or subscribe to
the [development log](https://plugins.trac.wordpress.org/log/distan/) by [RSS](https://plugins.trac.wordpress.org/log/distan/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.9.13

 * Initial public release.

## Meta

 *  Version **0.9.13**
 *  Last updated **23 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.0.2**
 *  PHP version ** 8.0 or higher **
 * Tags
 * [deploy](https://wordpress.org/plugins/tags/deploy/)[export](https://wordpress.org/plugins/tags/export/)
   [html](https://wordpress.org/plugins/tags/html/)[static](https://wordpress.org/plugins/tags/static/)
   [static site generator](https://wordpress.org/plugins/tags/static-site-generator/)
 *  [Advanced View](https://wordpress.org/plugins/distan/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/distan/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/distan/reviews/)

## Contributors

 *   [ youheiokubo ](https://profiles.wordpress.org/youheiokubo/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/distan/)