Sigurnost i performanse uz objavu statičnih web stranica. Jedan plugin koji rješava najveći problem WordPress-a.

Nastavite koristiti WordPress za ono u čemu je najbolji – uređivanje sadržaja a glavobolju vezanu za sigurnost i performanse zaboravite tako što ćete objavljivati web stranicu kao statični HTML.

A static site closes all the doors that an out of date WordPress, theme or plugin can leave open.

Prethodno generisane statične stranice će nadmašiti plugine za keširanje omogućavajući da budu posluživane korisnicima širom svijeta po lokalnoj brzini.


Nije kompatibilan sa WooCommerce i ostalim web stranicama koje zahtjevaju registraciju korisnika ali rješenja kao Snipcart omogućavaju da internet trgovine budu statične webstranice.


  • publishes a standalone, static html copy of your whole WordPress website
  • removes tell-tale signs your site is running WordPress, making it unattractive to hackers
  • Automatska objava u datoteku na vašem serveru, kao ZIP fajl, na FTP server, S3, GitHub, Netlif, BunnyCDN, BitBucket ili GitLab
  • schedule unattended exports via the WP Crontrol plugin or by hitting the custom hook
  • desktop notifications alert you to when exports are complete


  • protects you from malicious attacks/malware
  • speeds up your site by not hitting the database or executing any PHP code
  • allows you to host your site for free on GitHub Pages, Netlify or the free tier of AWS S3, Azure, etc
  • allows you to deploy to crazy fast hosting options, like S3, behind CloudFront
  • have a nice development -> staging -> production workflow and integrate with your CI tools

Riječ autora

Who loves this?

  • Digital Agencies with many sites to manage, no need to worry about WP/plugin updates for client sites
  • Internet Marketers can create a bunch of quick sites/landing pages that load fast and are free to host
  • Solo website owners and content creators who like WordPress but don't want to worry about how to secure it
  • Operations people at large corporations don't often like dealing with WordPress, this allows them to close the security holes and have more control over the hosting
  • Budget conscious people like free hosting (who doesn't?!?)
  • Government agencies who have strict security requirements, but have users who prefer to use WordPress
  • Thos who want to use it to archive an old WordPress website, keeping the content online, but not worrying about keeping WP up to date

This plugin produces a static HTML version of your wordpress install, incredibly useful for anyone who would like the publishing power of wordpress but whose webhost doesn't allow dynamic PHP driven sites – such as GitHub Pages. You can run your development site on a different domain or offline, and the plugin will change all relevant URLs when you publish your site. It's a simple but powerful plugin, and after hitting the publish button, the plugin will output a ZIP file of your entire site, ready to upload straight to it's new home.

Getting started

Here is the basic premise:

You need 2 URLs of some sort (they can be on the same server, different servers, subdomains, etc).

  • 1st URL is for where you keep WP – this doesn't need to be accessible or known to anyone but you, if you're the only one working on your content

  • Drugi URL je gdje ćete objaviti statičku verziju vaše web stranice. Ovo je najčešće vaša glavna domena (npr, http://mywordpresssite.com).

S tim u vezi, možete instalirati plugin i uraditi jednostavni test bez bilo kakve konfiguracije. Ovo će objaviti statičku verziju u pod-datoteku kao što je http://mywordpresssite.com/mystatictest/. To je dobar način da provjerite da li su statičke stranice objavljene ispravno. Zatim promjenite način isporuke (deploy) kao što je FTP ili GitHub Pages i isporučite na vašu aktuelnu stranicu.

WordPress omogućava neograničeno prilagođavanje i podešavanje. Ne mislim da svaki plugin može garantovati potpunu kompatibilnost sa svakom temom, pluginom ili vlastitim kodom na svakoj web stranici. Moj cilj je da što veći procenat ljudi koristi prednost posluživanja WP web stranice statički.

Ako niste čuli zašto biste trebali hostati statične web stranice, molimo pročitajte ovaj članak:


Developed by Leon Stafford. If you have any questions about this plugin's usage, installation or development, please email me at: help@wp2static.com

Slike ekrana

  • Načini isporuke
  • Opcije skeniranja
  • Opcije procesuiranja
  • Napredne opcije
  • Pomoć i dokumentacija
  • Detaljni log fajlovi
  • Načini kako da podržite plugin


via WP Admin panel

  1. Go to Plugins > Add New
  2. Pretražuj “WP2Static”
  3. Click on the Install Now button
  4. Activate the plugin and find it under the Tools menu

Watch an installation video

manual installation

  1. Upload the static-html-output directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Access the plugin settings from the “Tools” menu

via WP CLI

  1. wp --allow-root plugin install static-html-output-plugin --activate


How do I configure all the options?

There's some useful information on the page once you select a deployment method. There are also some good tutorials linked at https://wp2static.com/

Where can I publish my static site to?

Anywhere that allows HTML files to be uploaded, ie:

  • Any FTP server
  • GitHub/GitLab/BitBucket Pages (GitHub API integration now included)
  • S3 / CloudFront
  • Netlify
  • BunnyCDN
  • Rackspace Cloud Files

My export failed – how do I proceed?

Everyone's WordPress hosting environment and configuration is unique, with different plugins, themes, PHP versions, to name a few. Whilst the plugin does its best to support all environments, sometimes you'll encounter a new issue. Sometimes we can adjust the settings in the plugin to overcome an issue, other times, it will require a bugfix and a new release of the plugin (usually a quick process).

When you have an issue, send the contents of your “Export Log” on the plugin screen to the developer, at help@wp2static.com. He'll usually respond within 12 hrs, often sooner.


6. Jula 2020.
Searched Google, found this, installed it, went to settings, selected zip and relative links, downloaded, verified locally, patched a few bits, uploaded to S3... Job Done One small hiccup I'll raise a support request for as I've prior art. CSS background url's
23. Juna 2020.
Yay! I can make my WordPress static. WordPress > static HTML > Netlify. Keep up the good work 🙂
11. Juna 2020.
The plugin is perfection. I only registered to leave this review
2. Maja 2020.
WP2Static is a revolutionary plugin which turn a dynamically generated WordPress pages into normal HTML pages like you save using CTRL+S using browser. Similarly, it does at server level for whole site. I have used this plugin on few sites smoothly to deploy Static WordPress over BunnyCDN, Netlify. My experience for a normal blog is wonderful. I have also taken part in trying beta version which feels faster, represent truly open source mind. Not sure, how to say Thanks because that's not enough!
Read all 90 reviews

Contributors & Developers

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


“WP2Static” has been translated into 6 locales. Thank you to the translators for their contributions.

Translate “WP2Static” into your language.

Zainteresirani za razvoj?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Zapis promijena


  • Bump readme to show supported version of WordPress 5.3
  • change header image in wp.org
  • fix broken Slack link to Telegram


  • Bump readme to show supported version of WordPress


  • Bugfix: fix offline ZIP generation (links not being properly rewritten)
  • Bugfix: fix for srcset URLs not being crawled or rewritten
  • Bugfix: fixes compatibility with PHP 5.6 (but please do upgrade!)


  • Bugfix: fix cases of WordPress Site URL -> placeholder rewriting
  • Bugfix: fixes escaped URLs not being written to Destination URL


  • Bugfix: fixes incorrect links in pagination URLs detection
  • Bugfix: fixes homepage showing 404 page in some environments
  • Enhancement: allow custom port to be used during crawling


  • Bugfix: fix errors in S3 deployments. Ensure you delete your Deploy Cache (Advanced tab), then re-run your deploy with version 6.6.2.


  • Bugfix: fix for Excluded URLs; log exclusion rules for Debug Mode (thanks @yadex205!)
  • Bugfix: fix for malformed URLs returned in Detected URLs


  • Enhancement: Crawl Delay added to overcome “Too many files” issue on certain hosting environments
  • Bugfix: S3 files with @ in pathname (quick fix, in lieu of a comprehensive fix for extended/foreign characters)
  • Bugfix: forcing of https rewriting when site contains http links when serving over https
  • Bugfix: Detected URLs returning some paths with double //'s within
  • Change: plugin directory structure cleaned up


  • Bugfix: filter URLs with spaces from initial crawl list


  • Bugfix: fixes exports where homepage is 404


  • Enhancement: pagination URLs for all post types now included in initial crawl
  • Enhancement: pagination URLs for taxonomies, comments now included in initial crawl
  • Bugfix: posts and page URLs weren't all being detected


  • New feature: Debug Mode – helps diagnose any errors causing the plugin to fail
  • Enhancement: Improvements to URL rewriting engine
  • Enhancement: Set unique user-agent while crawling site
  • Bugfix: Allow uploads to S3 buckets with dots in bucket name
  • Bugfix: Detect Webpack-built themes’ dist directory
  • Bugfix: Fix false-positives in deploy tests
  • Bugfix: Fix error with WP-CLI options commands


  • New feature: incremental deploys for all but Netlify (cache unchanged files to speed up deploys)
  • New feature: Post-deploy hook, allowing users to trigger their own scripts after deploy
  • New feature: Additional URLs filter, allowing users to hook into plugin from their own code to manipulate the intial crawl list
  • Enhancement: PowerPack / all deploy methods now available in the free version.
  • Enhancement: progress bars now show during all compatible deploy methods
  • Enhancement: reduced plugin size/overhead by using custom code over 3rd party libraries
  • Enhancement: simplified CloudFront invalidation process (behind the scenes)
  • Enhancement: cURL requests replace Guzzle library for less bloat (behind the scenes)
  • Bugfix: BunnyCDN cache purging working properly (Storage & Pull Zone keys required)
  • Bugfix: email notification on deploy now working for browser based deploys (previously only WP-CLI deploys would trigger it if selected)
  • Bugfix: support Unicode chars in source HTML (thanks @dimobelov!)
  • Bugfix: fix Additional URLs not being crawled
  • Bugfix: choosing ‘Everything’ in WP URL detection really gets everything
  • Bugfix: protocol relative URLs being properly replace in HTML files
  • Bugfix: ignore Base HREF and relative URL settings when creating offline ZIP


  • New feature: choose your WordPress URL detection level (Crawl settings)
  • New feature: diff-based deploys for GitHub (PowerPack only)
  • Enhancement: New deployment method for GitHub (PowerPack only)
  • Enhancement: Progress-bar showing long-running task % complete (partial rollout)
  • Enhancement: Sticky footer for plugin controls (first iteration, not pretty yet)
  • Enhancement: Plugin download size reduced
  • Bugfix: Non HTML/CSS files not being properly written in export (proper fix for what should have been reoslved in last version)
  • Bugfix: Fix for detected WP theme URLs being malformed
  • Dropped: No longer creating symlinks to last export directory


  • Bugfix: JS files not being properly written in export


  • Bugfix: JS files not being properly written in export


  • Bugfix: Cachebust to ensure latest ZIP download link
  • Bugfix: Fix issue preventing certain 3rd party deploys (PowerPack only)


  • Bugfix: Site URLs without trailing slash weren't rewritten


  • New feature: WP CLI integration
  • New feature: auto-deploy to Bitbucket
  • New feature: auto-deploy to GitLab
  • New feature: send email upon completion
  • New feature: exclude URLs from being crawled/exported
  • New feature: initial support for feeds/xml exporting
  • Enhancement: much improved export speeds via batching requests
  • Enhancement: test external deploy settings before starting export
  • Enhancement: flexible URL rewriting and directory renaming
  • Enhancement: preview initial crawl list before starting your export
  • Enhancement: support sleeping between GitHub API requests, avoid rate limits
  • Enhancement: support multiple site ID formats within Netlify deploy
  • Enhancement: remove Freemius SDK from free version
  • Enhancement: scheduled CRON deploys now in the free version
  • Enhancement: detect Elementor, copy FontAwesome to archive
  • Enhancement: easy access to export/deploy logs from Logs tab
  • Enhancement: strip WP's noindex,follow meta tag
  • Enhancement: support Netlify _headers and _redirects files
  • Enhancement: support Yoast SEO sitemaps
  • Bugfix: Support for Bedrock, Debian & non-standard WP paths
  • Bugfix: Prevent rewriting mailto: links containing domain
  • Bugfix: Prevent rewriting URLs on external domains
  • Bugfix: Offline ZIP creation now functioning properly
  • Bugfix: Fix ZIP download button not always appearing
  • Bugfix: Ignore certificate errors when crawling
  • Drop feature: diff-based deploys (now possible via WP-CLI)
  • Drop feature: deploy to Dropbox (they don't love static sites anymore)
  • Plugin name change to WP2Static


  • Bugfix: Allow activation (with warning) for PHP < 5.4 users


  • Bugfix: Allow for WPMU/network site activation
  • Bugfix: Include gallery files for NextGEN Gallery


  • Bugfix: Major bug preventing certain files being crawled has been fixed
  • Improvement: Partial support for WPMU/network site activation


  • Improvement: Deploy times reduced by ~ 30%, amount of data transferred by client minimized
  • Improvement: Diff-based deploys to only copy changed files (for folder, S3 and FTP deployments only)
  • Improvement: Don't block other plugin usage if ZIP extension is not available
  • Improvement: UX – 1-click same-server deployments; defaults to same-server for new installs
  • Improvement: De-cluttered UI


  • Bugfix: include all nested directories when building initial list to crawl


  • Bugfix: missing library for GitHub Pages export in free version


  • Improvement: more deployment options included (Netlify, GitHub Pages)
  • Bugfix: certain cases where inline style images are written with incorrect filenames
  • Bugfix: fix for cron-scheduled exports failing
  • Bugfix: offline copy not rewriting home URLs


  • Bugfix: subdir WP installations not exporting properly
  • Improvement: cleaner UI for first export


  • Support for latest WordPress 4.9.8
  • Plugin name change to WP Static Site Generator


  • Enhancement: improved accessibility of plugin menu


  • Major bugfixes – must update
  • fixes issues preventing deployments on certain hosting environments


  • Enhancement: More feedback on export errors with troubleshooting tips
  • Enhancement: Updated Frequently Asked Questions


  • Bugfix: fix cases where exported site is placed in site root


  • New feature: support for relative URLs with base href


  • New feature: deploy directly to a folder on the current server
  • Improvement: FTP deployments included in the free forever version
  • Bugfix: fix for rewriting escaped URLs within JavaScript for some themes
  • Bugfix: fix for subdomains being duplicated during rewriting


  • Improvement: simplified UI for easier usage
  • Improvement: livechat from within plugin for easier support (during support hours)
  • Improvement: basic auth setting available for free users
  • Improvement: ability to reset plugin to default settings
  • Bugfix: fix from crawling prematurely ending when empty files encountered


  • Bugfix: fix certain CloudFront exceptions not being caught/logged
  • Bugfix: previous exports being included in deployments in some cases
  • Bugfix: issue preventing Dropbox deployments from working
  • Bugfix: enable S3 deploys to all regions
  • Bugfix: allow crawling local/self-cert SSL sites
  • Improvement: Dropbox export done incrementally to support shared hosting environments
  • Improvement: allow setting a subfolder within your S3 bucket to deploy to
  • Improvement: minimized number of files from plugin for faster install times
  • Improvement: allow crawling basic auth protected sites


  • Bugfix: fix certain CloudFront exceptions not being caught/logged


  • Bugfix: critical fix for exported directories not being rewritten


  • Bugfix: critical fix for Dropbox, BunnyCDN and Netlify exports


  • Bugfix: Fixes major issue where a failed first export blocked subsequent ones unless page was refreshed
  • Bugfix: Plugin was not respecting the Output Directory Override


  • Improvement: Reduced plugin download size from 4+ MB to about 0.8MB
  • Improvement: Streamlined S3 and CloudFront export codes not to require massive AWS SDK
  • Improvement: Add check for cURL extension and add more help to system requirements page
  • Improvement: Make UI cleaner; place export button above Export Log;call to action on n exports
  • Bugfix: Remove message about deleting ZIP when none has been created


  • Bugfix: Reduced plugin download size and fix missing libraries needed for export


  • Improvement: Reduced plugin total ZIP size to allow installation for limited hosts


  • Bugfix: Fix CloudFront Cache Invalidation and update to latest AWS SDK V3.6.13
  • Bugfix: allow crawling sites served via SSL / HTTPS
  • Bugfix: prevent PHP warnings in error_log for unlink and renaming files – check they exist first
  • Bugfix: correctly determine WP root in filesystem
  • Improvement: allow FTP active mode, not just passive
  • Improvement: add Osaka endpoint for S3
  • Improvement: include more information in Export Log to help debug


  • Feature: Remove all traces of WordPress from your site – improve your SEO/SEM
  • Feature: Include all of your uploads folder by default – ensures all files are exported
  • Improvement: Streamlined interface for less clutter
  • Improvement: Cleanup export folder upon completion – no more filling up your uploads dir
  • Improvement: Make ZIP creation an optional step – not everyone needs to create ZIPs!
  • Bugfix: Respect custom output folder setting
  • Bugfix: Strip query strings from extracted URLs
  • Bugfix: Use base uploads dir for export folder – no more digging around for your export folder


  • Under the hood improvements, increasing stability and performance of the plugin.


  • Feature: Export to BunnyCDN – a very cheap and quick static site hosting option
  • Bugfix: Extracts relative URLs like fonts, background images, etc linked from your theme's CSS files


  • Feature: Scheduled exports via WP Crontrol
  • Bugfix: FTP export now works on shared/limited hosting
  • Bugfix: Extracts all URLs when crawling your website's HTML files
  • Bugfix: Subsequent exports correctly show realtime progress in log


  • Bugfix: GitHub export now works on shared/limited hosting
  • Feature: Realtime export progress logs


  • Bugfix: don't hang on failures
  • Bugfix: fix option to retain files on server after export
  • Feature: 1-click publishing to a Netlify static site
  • Feature: view server log on failure


Critical bug fixes and a shiny new feature!

  • Bugfix: Dropbox export once again working after they killed version 1 of their API
  • Bugfix: Amazon S3 publishing fixed after bug introduced in 1.9
  • Feature: 1-click publishing to a GitHub Pages static site

Thanks to a user donation for funding the development work to get GitHub Pages exporting added as a new feature. I was also able to merge some recently contributed code from @patrickdk77, fixing the recent issues with AWS S3 and CloudFront. Finally, I couldn't make a new release without fixing the Dropbox export functionality – unbeknowst to me, they had killed version 1 of their API in September, breaking the functionality in this plugin, along with many other apps.


  • Bugfix: Plugin now works on PHP 5.3

Though this is no longer an officially supported PHP version, many of this plugin's users are running PHP 5.3 or earlier. This fix should once again allow them to use the plugin, which has not been possible for them since about version 1.2. If you are one of these affected users, please now upgrade and enjoy all the new useful features!


  • Bugfix: improved URL rewriting

Plugin now ensures that formatted versions of your site's URL, ie //mydomain.com or http:\/\/mydomain.com\/ or the https/http equivalent are detected and rewritten to your target Base URL. The rewriting should now also work within CSS and JavaScript files.


  • Bugfix: index.html contents empty for some users’ themes/setups
  • Bugfix: remove PHP short open tags for better compatibility


  • Additional URLs now work again! Much needed bugfix.


  • bugfix for Dropbox export function not exporting all files


  • add Dropbox export option
  • fix bug some users encountered with 1.3 release


  • reduce plugin download size


  • supports Amazon Web Service's S3 as an export option


  • unlimited export targets
  • desktop notifications alert you when all exports are completed (no more staring at the screen)


  • 1-click generation and exporting to an FTP server
  • improved user experience when saving and exporting sites (no more white screen of boredom!)


  • Now able to choose whether to strip unneeded meta tags from generated source code.
  • Improved layout for config/export screen.
  • Better feedback to user when system requirements are not met


  • Version bump for supporting latest WP (4.7)


Added Features

  • Updated author URL

Removed Features

  • Premium options for One-Click publishing to provided hosting and domain


Added Features

  • Premium options for One-Click publishing to provided hosting and domain


Added Features

  • Japanese localization added (ja_UTF)


Added Features

  • long-awaited FTP transfer option integrated with basic functionality
  • option to save generated static HTML files on server


Fixed bug introduced with previous version. Applied following modifications contributed by Brian Coca (https://github.com/bcoca):

Added Features

  • zip is now written atomically (write tmp file first, then rename to zip) which now allows polling scripts to only deal with completed zip file.
  • username and blog id are now part of the file name. For auditing and handling
    multi site exports.

Bug fixes

  • . and .. special directory entries are now ignored
  • dirname is checked before access avoiding uninitialized warning


Added shortcut to Settings page with Plugin Action Links


Added link to relevant Settings page when permalinks structure is not set.


Added a timeout value to URL request which was breaking for slow sites


Altered main codebase to fix recursion bug and endless loop. Essential upgrade.


Initial release to WordPress community