我的服务器上有很多用户没有网页;他们既没有制作index.html文件也没有给予任何权限。他们的页面显示“403 Forbidden”。例如,像
这样的页面 www.example.com/~user
显示
Forbidden
You don't have permission to access /~user on this server.
我已经设置了.htaccess,以便将403错误重定向到自定义页面。但是,这些页面不会重定向到自定义页面。
我该如何解决这个问题?
编辑:我的.htaccess文件是
ErrorDocument 404 error/404.php
ErrorDocument 403 error/403.php
Options -Indexes