没有权限访问此服务器上的/*******.php


Don't have permission to access /*******.php on this server

我从高到低搜索了类似的问题,是的,有很多,尽管没有帮助。

所有文件上传到一个实时网站,没有错误使用XAMMP测试服务器,文件权限设置为744 r/w/x用户r/r客人和组,但当我去访问文件没有权限访问/*******.php

有什么我错过了吗?因为我一直在努力弄清楚这件事。

提前感谢!

EDIT:

htaccess文件在实时服务器上-看起来相当不同!

Options +Indexes  
RemoveHandler .html  
RemoveType .html  
AddType text/html .html  
Satisfy any  
Order Deny,Allow  
Allow from **********  
Deny from all
AuthType Basic  
AuthName "Access to /logs"

--------------------------------------- 新编辑 ---------------------Right发现了我的问题,无法获得访问htaccess文件的权限,这个链接解释了http://tips.webdesign10.com/web-hosting/why-you-should-never-use-1and1-com-hosting永远不要使用1and1.

检查您的虚拟主机配置,并检查是否有类似的内容:

<Directory "your/path/to/document/root">
  Options Indexes FollowSymLinks
  AllowOverride all
  Order Allow,Deny
  Allow from all
</Directory>