我是 OpenLitespeed 网络服务器的新用户。以前我使用 Apache 作为我的 Web 服务器。现在,我对 OpenLitespeed 中出于安全目的的 .htaccess 感到困惑。
在我的 .htaccess 规则下,在 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>
如何在 OpenLiteSpeed Web Server 中使用此规则?谢谢