我在IP上使用了一个白名单,因此我想告诉用户为什么会这样。
order deny, allow
deny from all
allow from 24.11.95.152HTACCESS中的IP白名单^
现在,我将ErrorDocument设置为/403
ErrorDocument 403 /403最后,我将/403重写为uhoh.php
RewriteEngine On
RewriteRule ^403/?$ uhoh.php [NC]然而,我仍然从LiteSpeed中得到了典型的错误。
发布于 2013-09-16 00:28:01
您可以将ErrorDocument直接与您希望用于自定义消息的文件一起使用。
在你的例子中,如下所示:
ErrorDocument 403 /uhoh.php从您的示例来看,您似乎试图将错误页面重定向一倍,而这并不是真正需要的。
https://stackoverflow.com/questions/18817736
复制相似问题