Skip to content

WordPress Hosting

WordPress plugins generate complex .htaccess rules for security, caching, SEO, and image optimization. Stock OpenLiteSpeed ignores most of these directives, leaving your site unprotected and misconfigured.

LiteHTTPD has been tested with the most popular WordPress plugins that write .htaccess rules:

CategoryPlugins.htaccess Directives Used
SecurityAll-In-One Security, WordfenceFilesMatch, Require, Order/Deny, Files
CacheW3 Total Cache, WP Super Cache, Far Future ExpiryExpiresByType, Header set Cache-Control, AddType
SEOYoast SEO, Rank MathRedirect, RewriteRule
SSLReally Simple SSLRewriteCond %{HTTPS}, RewriteRule [R=301]
ImageWebP Express, EWWW, ImagifyRewriteCond %{HTTP_ACCEPT}, AddType
HeadersHTTP HeadersHeader set (CSP, X-Frame-Options)
Cache (OLS)LiteSpeed CacheCacheLookup, RewriteRule
HideWP Hide & Security EnhancerRewriteRule path obfuscation

All 15 plugins pass the compatibility test with identical behavior to Apache httpd.

  • WordPress permalink rewrite rules
  • Security plugin IP blocking and file protection
  • Cache plugin Expires and Cache-Control headers
  • SEO plugin redirects and sitemap rules
  • SSL/HTTPS forced redirect
  • Custom error pages (ErrorDocument)
  • PHP configuration (php_value, php_flag)
  • Directory index settings
  • File upload restrictions
Terminal window
# Install LiteHTTPD (Full edition) via RPM
dnf install ./openlitespeed-litehttpd-*.rpm
# Or manually install the module
cp litehttpd_htaccess.so /usr/local/lsws/modules/
# Enable in OLS config
echo 'module litehttpd_htaccess { ls_enabled 1 }' >> /usr/local/lsws/conf/httpd_config.conf
# Enable .htaccess for WordPress vhost
echo -e "allowOverride 255\nautoLoadHtaccess 1" >> /usr/local/lsws/conf/vhosts/wordpress/vhconf.conf
# Restart
/usr/local/lsws/bin/lswsctrl restart

Running WordPress 6.9 with all 15 plugins active (217-line .htaccess):

MetricApache httpdLiteHTTPD
Static file RPS10,61821,960 (2.1x faster)
.htaccess parsing overhead-4.2%-0.7%
Baseline memory969 MB676 MB (30% less)
.htaccess compatibility100%90%+