- 我有一個目錄讓我們CALLIT
dir1
我有它,它被稱爲index.html
一個HTML文件和我在同一個目錄.htaccess
文件,它會將所有的URLindex.html
。 - 我也有
dir1
dirctory clleddir2
它有php文件index.php
。 index.html
將請求發送到index.php
使用Ajax請求正常工作時的URL是localhost/dir1/
或與還與因.htaccess
文件localhost/dir1/index.html
或localhost/dir1/anything_here
當網址localhost/dir1/anything/
它不因爲它應該工作,或者還可以當網址是localhost/dir1/anything/anything/any../..
等
這個問題的解決方法是什麼?AJAX和PHP目錄
你也應該張貼.htaccess文件的內容。如果我們看不到它,我們無法知道.htaccess文件是正確還是錯誤。 – Dragos