如何配置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