apache的斜杠问题
APACHE默认情况下,网页目录的最后必须加入斜杠“/",比如
可以浏览http://www.example.com/abc/,但是不能浏览http://www.example.com/abc,就是说浏览目录时最后必须加/ 改一下设置文件,在httpd.conf里,找到
UseCanonicalName On
把On修改为Off就可:
UseCanonicalName Off
就可以了
当然也可用mod_rewrite来解决,首先要确认你的apache里已经安装了这module,且你的httpd.conf里起用了rewrite,才可以调用.htaccess
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo&...