如何配置Apache和/或PHP以便能夠訪問沒有.php擴展名的PHP腳本?我看到沒有.php擴展名的PHP腳本被執行。我並不是指將'script'作爲PHP文件執行,我的意思是將'domain.com/script'作爲PHP文件執行,其中'script.php'作爲文件存在,但您可以在不使用擴展名的情況下訪問它。有人知道如何配置它嗎?無.php擴展訪問PHP腳本
我使用CPANEL主機!
在哪裏寫mod_rewrite?我有一個.htaccess文件的代碼# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working RewriteBase /
我想你問的是你不想顯示url.right擴展? 你需要爲此編寫htaccess規則。 – 2012-02-10 07:45:15
我已經寫了我的代碼PLZ解釋 – 2012-02-10 07:58:17
-1爲過度的大寫鎖定使用 – 2012-02-10 08:09:31