Skip to content

404 error on wordpress website for litespeed webserver

Updated 1 min read

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

  1. Make sure .htaccess in 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
  2. 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.

Related services

Web hosting

shared hosting on Virtualmin with NVMe storage, free SSL and email.

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

Hire an expert

engineers per 15 minutes, per hour or per month, with no contract.

Was this answer helpful?

Still stuck? Open a ticket