How To Convert Your WordPress Site Into a Static Site
WordPress has been a dominant player in the world of web hosting. As of December 2024, 43% of all websites were hosted on WordPress. In recent months, WordPress has found itself mixed up in controversies, but even without those controversies, there’s always been an active pipeline of people who want to move their websites from the complexity of WordPress installations to static HTML.
Today, we’re going to walk through how to do exactly that and how to host the new static website on Orbiter. We’ll be using a free service called Simply Static (fitting, right?) to convert our WordPress site. Let’s dive right in!
Prerequisites
- A working WordPress installation
- Admin access to your WordPress dashboard
- A free Orbiter account
- Backup of your WordPress site
Step 1: Installation and Initial Setup
-
Install Simply Static:
- Log in to your WordPress dashboard
- Go to Plugins > Add New
- Search for “Simply Static”
- Click “Install Now” then “Activate”
-
Initial Configuration:
- Navigate to Simply Static > Settings
- Under “General” tab, configure:
- Destination URLs (where your static site will be hosted)
- Delivery Method (ZIP archive or local directory)
- URLs to exclude from static generation
Step 2: Prepare Your WordPress Site
-
Check Your Theme:
- Ensure your theme doesn’t rely heavily on dynamic PHP functionality
- Test all important pages work without dynamic features
- Remove or replace dynamic widgets if necessary
-
Review Your Content:
- Check all internal links use relative paths
- Update any hardcoded URLs to match your new static domain
- Remove dynamic elements like live search or real-time features
-
Handle Forms:
- Replace WordPress forms with static alternatives (e.g., Formspree)
- Update contact forms to work without PHP
- Document any forms that need special handling
Step 3: Configure Simply Static Settings
-
Basic Options:
Simply Static > Settings > General - Set "Origin URL" to your current WordPress URL - Set "Destination URL" to your target static site URL
-
Advanced Options:
Simply Static > Settings > Advanced - Configure "Additional URLs" to include - Set "Additional Files and Directories" - Configure "Exclude URLs" for any pages you don't want to convert
-
Configure Additional Settings:
- Set up HTTP Basic Authentication (if needed)
- Configure rate limiting
- Set up custom temporary files directory
Step 4: Generate Static Files
-
Initial Generation:
- Go to Simply Static > Generate
- Click “Generate Static Files”
- Monitor the progress in the activity log
- Review any errors or warnings
-
Verify Generated Files:
- Check the generated static files in your chosen destination
- Verify all pages are generated correctly
- You can review the code or you can open the html files in your browser
- Test all internal links
- Ensure images and assets are properly included
Step 5: Deploy Your Static Site
-
If using ZIP archive method:
- Download the generated ZIP file
- Extract contents to your local machine
- Upload files to Orbiter
-
If using local directory method:
- Access the generated files in your specified directory
- Upload files to Orbiter
Step 6: Testing and Verification
-
Test Your Static Site:
- Check all pages load correctly
- Verify all links work
- Test media files and downloads
- Check mobile responsiveness
- Verify forms are working
- Test navigation and menus
-
Performance Testing:
- Run speed tests (Google PageSpeed Insights)
- Check browser compatibility
- Verify SEO elements are preserved
Common Issues and Solutions
- Missing Pages:
- Check Simply Static’s activity log
- Add missing URLs to “Additional URLs” setting
- Verify page isn’t in exclusion list
- Broken Links:
- Update absolute URLs to relative paths
- Check for hardcoded URLs in theme files
- Verify media files are properly included
- Style Issues:
- Ensure all CSS files are included
- Check for dynamic CSS generation
- Verify font files are included
- JavaScript Errors:
- Check browser console for errors
- Verify all JS files are included
- Update any WordPress-dependent scripts
Conclusion
Static sites allow for more flexibility and portability. With WordPress, you are locked into WordPress (even if it is open source software). With a static site, you can host your site almost anywhere. If you want to move off Orbiter, it’s dead simple (though we hope you don’t!).
If you’re ready to move from WordPress to static sites, give Orbiter a try for free.