LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1096|回复: 0

想取消这个自动补全扩展名的功能。一个apache/php配置问题。

[复制链接]
发表于 2010-1-7 20:36:35 | 显示全部楼层 |阅读模式
情况是这样的:
1、在 /aaa 目录里边有一个 bbb.php 文件。
2、在 /aaa 目录里还有一个 .htaccess 文件。
.htaccess 中的内容:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?query=$1 [L,QSA]
AcceptPathInfo Off


3、我在浏览器中输入:
http://localhost/aaa/bbb/0xSJbmZa06pVsEXW
却返回下边这些:
Not FoundThe requested URL /aaa/bbb.php/0xSJbmZa06pVsEXW was not found on this server.
Apache/2.2.12 (Ubuntu) Server at localhost Port 80


我的问题是,这个bbb怎么就加上了一个.php扩展名呢?
如果我想去掉这个自动添加上的扩展名,该用哪个选项去设置呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表