【发布时间】:2018-06-19 12:17:52
【问题描述】:
我允许我的主机服务器使用受限 IP,但是当另一个 IP 访问 /phpmyadmin 时,它们总是会出错
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
错误 403
我想更改我的页面禁止访问 /phpmyadmin。重定向回首页,所以只允许IP可以访问该页面。
我尝试在我的根文件夹上使用 .htaccess,但是当我访问 fwww.mydomain.com/phpmyadmin 时仍然无法更改页面的任何内容
【问题讨论】:
-
请告诉我们您的尝试。 // 实现这一点的最简单方法可能是通过 phpMyAdmin 基本文件夹中的 .htaccess 将 PHP 脚本指定为 403 ErrorDocument,并让该脚本简单地发出重定向回您的基本域。