Hello Guys,
Recently we have migrated our project from Apache to litespeed web server on cloudlinux cpanel server. Now, we are facing 500 Internal Server error issue with litespeed web server but when we switch to apache web server its works fine. But only when we use the litespeed server we face an issue with 500 Internal Server error.
Below are .htaccess Rules I use for the project Run:-
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteEngine On
RewriteCond %{HTTPS} off
Options FollowSymLinks
RewriteBase /
RewriteRule ^savelead/([0-9]+)$ api/web/leadbucket/savelead/$1 [R=307,L]
RewriteRule ^([0-9]+)$ api/web/domain/replaceprettylink/$1 [R=307,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /#/$1 [L]
RewriteRule ^(.*)/$ /#/$1/ [L]
<IfModule LiteSpeed>
RewriteLogLevel 9
</IfModule>
When I added this rules got 404 error.
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
So, is there any solution to fix this issue? without using apache web server.
Recently we have migrated our project from Apache to litespeed web server on cloudlinux cpanel server. Now, we are facing 500 Internal Server error issue with litespeed web server but when we switch to apache web server its works fine. But only when we use the litespeed server we face an issue with 500 Internal Server error.
Below are .htaccess Rules I use for the project Run:-
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteEngine On
RewriteCond %{HTTPS} off
Options FollowSymLinks
RewriteBase /
RewriteRule ^savelead/([0-9]+)$ api/web/leadbucket/savelead/$1 [R=307,L]
RewriteRule ^([0-9]+)$ api/web/domain/replaceprettylink/$1 [R=307,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /#/$1 [L]
RewriteRule ^(.*)/$ /#/$1/ [L]
<IfModule LiteSpeed>
RewriteLogLevel 9
</IfModule>
When I added this rules got 404 error.
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
So, is there any solution to fix this issue? without using apache web server.
Attachments
-
249.2 KB Views: 2