0
注意到Apache的奇怪行为。 我使用mod_rewrite每为什么Apache将.php添加到URI
RewriteCond %{REQUEST_URI} !^.*css|gif|js|png$
RewriteRule ^(.*)$ index.php?q=$1 [QSA]
重定向所以当我键入 www.example.com/something
在浏览器,里面的index.php $ _REQUEST [ 'Q']回报 '东西'
但是除了index.php,还有一些其他的php文件在根文件夹(例如profile.php)中。
所以,当我键入
www.example.com/profile
的index.php $ _REQUEST [ 'Q']返回 'profile.php'
为什么这个.PHP里面出现?
谢谢,这个工程。 – 2012-03-09 16:33:04