WordPress website 404 error on litespeed webserver

In this article, we will see how to resolve WordPress website 404 error on LiteSpeed webserver.

In case you are getting “404 page not found” error on WordPress website, then you need to edit your .htaccess file and replace the existing WordPress rules with these rules :

RewriteBase /
RewriteRule ^/index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

“/” is the location WordPress was installed relative to the vhost docroot.

Save the file and restart litespeed.


In case you are using cyberpanel, then make sure you edit the .htaccess file from the filemanager and save it once from there. Directly editing the file from terminal doesn’t seems to work in the way it works.

[Need assistance to fix this error or install tools? We’ll help you.]

Related Articles