How to resolve 404 error from website internal pages on LiteSpeed/Cyberpanel?

How to resolve 404 error from website internal pages on LiteSpeed/Cyberpanel?

Some time you face 404 error on all internal pages of your website. This often happened when you move your website from one server to any other or change any internal configurations. Here in this article we will tell you How to resolve 404 error from website internal pages on LiteSpeed Cyberpanel.

Without going deep let me tell you the reason for this. This happened due to the permissions or the rewrite rules. As after changes Open litespeed need a restart.

To resolve 404 error from website internal pages on LiteSpeed/Cyberpanel we just have to do 2 steps.

Steps to resolve 404 error from website:

1. Fix permissions.

Login to your cyberpanel on port 8090.

https://<YOURIP>:8090
cyberpanel login

Got to the website->list websites then click on Manage button present in front of your domain which have issue.

Manage Website
Manage Website

Scroll down and find file manager click on it and here you will find fix permissions button click that a green pop up appears.

fix permissions
fix permissions

2. Restart LiteSpeed Webserver

After doing all restart the Open liteSpeed webserver. You can do it two way one through command.

Systemctl restart lsws

.Or go to the Server status-> LiteSpeed status and press restart.

How to resolve 404 error from website internal pages on LiteSpeed/Cyberpanel?

Here you can read How to log in to the Rainloop admin dashboard?

Read More: How to Change Upload limit On CyberPanel?

How to Change Upload limit On CyberPanel?

You can follow us on Facebook too.

How to fix Fix WordPress 404 permalink OpenLiteSpeed- 404 error on OpenLiteSpeed

If you host your WordPress websites with OpenLiteSpeed you may get a 404 error on the permalink of your website. here in this article, I will explain how you can fix ix WordPress 404 permalink OpenLiteSpeed.

OpenLiteSpeed is the free version of LiteSpeed Enterprise and this free version is not as stable as the paid version. Not OpenLiteSpeed WordPress permalink often gives 404 error. When you move site from one server to another or made any change this error comes up. Here i will discuss few methods to solve this issue.

Methods to fix WordPress 404 permalink OpenLiteSpeed:

Method 1 Fix Permissions:

If you are using CyberPanel and you did any change of website after that 404 error come to the site you can fix it by doing few thing.

  1. Fix permissions from the file manager
  2. Restart OLS

Fix Permissions from the file manager:

To fix permission you have to log in to your cyber panel then go to the Websites-> List website select the domain for which you have to fix the issue then press the Manage button present in front of the website.

Manage Website
Manage Website

On the Website Dashboard you can see File Manager press to access the file manager.

File Manager
File Manager

In file manager click Fix Permission button and you can see the success massage in green color.

Fix Permission
Fix Permission

After doing all now its time to restart OLS.

Restart OpenLiteSpeed:

To restart OLS from CyberPanel you have to go on Server Status ->LiteSpeed Status and then you see two-button shutdown and reboot. Press the Reboot button and you can see a success message.

Restart OpenLiteSpeed:
Restart OpenLiteSpeed:

Method 2 htaccess:

An other reason is the missing rules in htaccess for WordPress. To check htaccess rules. Go to the Public_html folder of the website. If you have CyberPanel go to the Website->List Websites then press Manage button.

Then go to the file manager from the Website Dashboard.

File Manager

In file manager open and open .htaccess file and see if there is rules or if the file is empty.

If file is empty add these rule and press save.

# 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>

and after doing this restart OLS as mentioned above.

Read more: How to create, delete and manage Child Domains in CyberPanel?

Follow US on Facebook / Twitter Instagram .