I'm a new user of OpenLitespeed web server. Previously I used Apache for my web server. Now, I'm getting confused about .htaccess for security purpose in OpenLitespeed.
Below my .htaccess rule works great in Apache
IndexIgnore *.css *.js *.png *.jpg
Options -Indexes
ErrorDocument 400 index.php
ErrorDocument 403 index.php
ErrorDocument 404 index.php
ErrorDocument 500 index.php
<Files ~ "\.optl$">
Order allow,deny
Deny from all
</Files>
How can I use this rule in OpenLiteSpeed Web Server? Thank you
I am not sure this is the correct answer, but I put it here in case you need it:
OpenLitespeed supports .htaccess in another way. You can copy the rewrite rules from the .htaccess and paste into OpenLiteSpeed admin console:
Update: Yes I just tested it as I met this issue now. It did work.