mod_rewrite的“添加路径信息后缀:” [英] mod_rewrite 'add path info postfix:'
本文介绍了mod_rewrite的“添加路径信息后缀:”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么我的mod_rewrite这样做呢?
Why is my mod_rewrite doing this?
add path info postfix: /home/mobelluk/public_html/about.php -> /home/mobelluk/public_html/about.php/
这将导致一切不必要的尾部的斜杠。
which results in an unwanted trailing slash on EVERYTHING.
我已经停用我所有的.htaccess规则,所以他们的方程。
I have disabled all my .htaccess rules so they're out of the equation.
推荐答案
是否有可能在新的服务器具有的 mod_dir 装,用 DirectorySlash在
其中,旧的不和是导致这个问题?
Is it possible the new server has mod_dir loaded, with DirectorySlash On
where the old one did not and that is leading to this problem?
(注意: DirectorySlash在
是缺省值 mod_dir
被加载并没有被覆盖的话)
(Note that DirectorySlash On
is the default if mod_dir
is loaded and nothing is overriding it)
这篇关于mod_rewrite的“添加路径信息后缀:”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文