Updated: 28 September 2026 · Applies to: WordPress 7.1
If WordPress pages other than the home page show "404 Not Found" on a LiteSpeed server, the rewrite rules in .htaccess are missing or damaged.
Fix
- Make sure
.htaccessin the WordPress folder contains the standard WordPress block:# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress - In WordPress, go to Settings › Permalinks and click Save Changes to refresh the rules.
LiteSpeed reads .htaccess changes after a short delay or a restart; if the problem stays, ask support.