2013-03-22 13 views
0

在我的主机,我创建了一个子文件夹(测试),然后把test.php index.php到它。当我访问example.com/test example.com/test/test.php example.com/test/index.php这一切显示为什么文件后缀用php无法访问?

403 Forbidden 

Access to this resource on the server is denied! 
Powered By LiteSpeed Web Server 
LiteSpeed Technologies is not responsible for administration and contents of this web site! 

当我创建了一个.htaccess文件,并把它变成test文件夹。该文件(.htaccess)是空的。

example.com/test example.com/test/test.php example.com/test/index.php, 

但现在,example.com/test此URL可accessed.why?

回答

0

您有权限访问所提及的文件吗?只是说,最好将index.php保存在项目的根目录中,而不要放在子目录中。

+0

是的,我设置了777 – s321 2013-03-22 20:49:51

相关问题