Deploy to Local Directory

Local Directory writes the static files to a folder on the machine running WordPress. Use it when a web server or a separate sync process will serve those files.

  1. Open Settings → Deployment, then select Local Directory.
  2. In Path, enter the absolute server path to a dedicated output directory, for example /var/www/static-output/. The WordPress PHP process needs write access. Copy home path can help you find the installation’s base path.
  3. Decide whether to enable Clear Local Directory. It can remove existing files from the target. Choose a directory used exclusively for this export, outside your WordPress application files.
  4. Save, run a Full Site push and check for index.html at the target.

Local Directory selected as the deployment method

Set the public web server’s document root to the exported directory, or sync its contents to your host. Configure the address visitors use under Settings → General → Replacing URLs. Set the static site URL.

Deploy directly from WordPress to services such as GitHub, S3 and Bunny CDN with Simply Static Pro. For managed WordPress and static hosting in one service, explore Simply Static Studio.