.htaccess not working for adhook php script on cyberpanel

Hi, I have this .htaccess rules in my php script, but its not working. Its used to work in appache server. but its not in openlitespeed. My cyberpanel version is 1.8.

Options -MultiViews -Indexes

RewriteEngine On

Handle Authorization Header

RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Redirect Trailing Slashes If Not A Folder…

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

Handle Front Controller…

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Someone help me out. Its always giving 404 error. see here at https://adkit.in

Answered your query here → .htaccess not working — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

You don’t really need to edit your rewrite rules anymore with CyberPanel and OpenLiteSpeed.

yes thanks it saved my day. sorry for late reply.