Have a good time!
I have this .htaccess with this kind of content:
DirectoryIndex index.php index.html
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
<Files .*>
<IfModule !mod_access_compat.c>
Require all denied
Order deny,allow
Deny from all
RewriteRule ^(?:cache|log)\b.* - [R=403,L]
RewriteCond %{REQUEST_FILENAME} \.php$
RewriteRule !index\.php.* - [R=403,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^assets/css/cache$ assets/css/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^assets/js/cache$ assets/js/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^assets/js/cm$ assets/js/codemirror/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule .* index.php/$0 [L]
RewriteRule .* index.php [PT,QSA,L]
I also have a website that runs under CyberPanel + Openlitespeed.
but unfortunately, this site doesn’t want rewrite.
Could you help me, make it so OLS understands?