【发布时间】:2018-08-10 08:35:13
【问题描述】:
我是 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 中使用此规则?谢谢
【问题讨论】:
-
我遇到了同样的问题
标签: php apache .htaccess mod-rewrite litespeed