WP2Static: Turn Your WordPress Site into a Fast, Secure Static Site & Deploy to Netlify
Step-by-step guide for exporting a WordPress development site with WP2Static and deploying it to Netlify (perfect for secure, fast client sites)
Why Go Static with WordPress + Netlify?
Most of the sites we build follow this workflow:
- Development happens on a private WordPress setup (local or staging server)
- Once the site is ready → export to pure static HTML/CSS/JS
- Deploy the static version publicly → no PHP backend = much faster + way more secure
Benefits include:
- No more constant WordPress core/plugin updates for security
- Lightning-fast loading (global CDN)
- Almost zero hosting cost (Netlify free tier is excellent)
- No database = no hacking surface
What You'll Need
- A working WordPress development site (local or private server)
- Admin access to that WordPress
- A free Netlify account (Sign up here)
Note: We'll use the free/manual drag-and-drop method — perfect for one-time or occasional deploys.
Step 1: Install & Activate WP2Static
- Log in to your WordPress admin dashboard
- Go to Plugins → Add New
- Search for "WP2Static" (official name: WP Static Site Generator)
- Install and Activate it
Optional but recommended for ZIP export: Also install the free WP2Static – Zip Deployment add-on if available in the repository or from the official site.
Step 2: Configure WP2Static Basic Settings
- Go to WP2Static in the WordPress sidebar
- Click the Settings tab
- Set these important options:
- Base URL: Put the final public URL your site will use (example: https://yoursite.com)
- Target folder: Leave default or choose a folder name
- Choose ZIP deployment (or default export if no add-on)
- Save changes
Tip: Make sure your site looks perfect before exporting — broken links, missing images, etc. will stay in the static version!
Step 3: Generate Your Static Export
- In WP2Static, go to the main plugin page
- Click Start static site export (or similar button)
- Wait… it crawls your entire site (can take 2–15 minutes depending on size)
- When finished → download the .zip file
You now have a complete static copy of your WordPress site — HTML files, images, CSS, JS, everything!
Step 4: Deploy to Netlify (Drag & Drop – Super Easy)
- Log in to your Netlify dashboard
- If this is your first site:
- Click New site from Git
- Scroll down to the bottom → find Deploy manually / Drag & Drop area
- If you already have a Netlify project (we can transfer ownership later):
- Go to your existing site → Deploys tab
- Drag & drop into the "Drag & drop your site folder here" zone
- Unzip the WP2Static export first → drag the folder that contains
index.html(usually the folder inside the zip) - Wait 30–90 seconds → Netlify gives you a random URL (something.netlify.app)
Your static site is now live! 🎉
Step 5: Final Touches & Transferring Sites
- Custom domain → Add your domain in Netlify → DNS settings (very straightforward)
- Updates needed? → Go back to WordPress dev site → make changes → re-export ZIP → drag & drop new version to Netlify (it overwrites automatically)
- Transferring current Netlify project → Once your friend has his Netlify account, we can transfer ownership via Netlify's team/transfer feature — just let me know
Common Gotchas & Tips
- Forms / search / comments won't work (static = no backend). Use external services like Netlify Forms, Disqus, Algolia, etc.
- Test all pages/links after deploy — especially menus & images
- If ZIP is huge (>100 MB) → drag & drop can be slow; consider connecting GitHub repo next time for auto-deploys
- Alternative plugins: Simply Static is also great if WP2Static feels tricky
Ready to Go Static?
This method is how we keep sites fast, cheap, and bullet-proof against WordPress vulnerabilities.
Questions? Hit me up — happy to walk through your first export together!
Comments
Approved comments appear below. Log in once with GFAVIP — it applies across the whole site. GFAVIP login
View comments archive