2013-03-22 26 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

相關問題