WordPress Migration
WordPress .htaccess Compatibility
Section titled “WordPress .htaccess Compatibility”LiteHTTPD passes all 18 WordPress compatibility tests with 19 popular plugins installed:
- All-In-One Security (AIOS)
- Wordfence Security
- W3 Total Cache
- WP Super Cache
- Yoast SEO
- Rank Math SEO
- Redirection
- Really Simple SSL
- HTTP Headers
- WebP Express
- EWWW Image Optimizer
- Imagify
- Far Future Expiry Header
- WP Hide & Security Enhancer
- LiteSpeed Cache
Standard WordPress .htaccess
Section titled “Standard WordPress .htaccess”The default WordPress .htaccess works without modifications:
# BEGIN WordPressRewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]# END WordPressPlugin-Generated Rules
Section titled “Plugin-Generated Rules”WordPress plugins typically add rules to .htaccess for:
| Plugin Type | Directives Used |
|---|---|
| Security (AIOS, Wordfence) | <FilesMatch>, Require, Order/Deny, <Files> |
| Cache (W3TC, WPSC) | ExpiresByType, Header set Cache-Control, AddType |
| SEO (Yoast, Rank Math) | Redirect, RewriteRule |
| SSL (Really Simple SSL) | RewriteCond %{HTTPS}, RewriteRule [R=301] |
| Image (WebP Express) | RewriteCond %{HTTP_ACCEPT}, AddType |
All of these are fully supported by LiteHTTPD.
PHP Configuration
Section titled “PHP Configuration”For WordPress-specific PHP settings in .htaccess:
php_value upload_max_filesize 64Mphp_value post_max_size 64Mphp_value memory_limit 256Mphp_flag display_errors OffThese require Patch 0001 to take effect via lsphp.