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 On
而旧的没有,这导致了这个问题?
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 On
是默认的,如果 mod_dir
被加载并且没有任何东西覆盖它)
(Note that DirectorySlash On
is the default if mod_dir
is loaded and nothing is overriding it)
这篇关于mod_rewrite '添加路径信息后缀:'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文