HoganHost blog

[email protected]

WordPress 404 Not found error on LiteSpeed Web Server [Solved]

As you might already know, LiteSpeed Web Server is fastest compared to Ngnix and Apache.
You probably wanted to speed up your website speed by switching your web server from Apache to LiteSpeed Web server, but migrating from Apache server to LiteSpeed Web Server got you in trouble.

There is chances that WordPress is showing “404 Not found” error and no page of post links are working except homepage and wordPress admin dashboard.

404 Not found Error in WordPress using Litespeed Web Server

Don’t panic, your website is still safe if it’s showing you 404 Not found error after you migrated to LiteSpeed.


1. Login into FTP or file manager and locate to your wordpress directory(normally its under “public_html”)
2. Edit your .htaccess file using file manager edit function

3. Check for the below code

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

You need to add “/” in the second line of code or simple copy/paste the below code with the current code in your .htaccess

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

Important Step : Restart LiteSpeed Web Server and your website will be working fine.

Feel free to share your questions in the comment section.

Leave a Comment

Your email address will not be published. Required fields are marked *