Another mod_rewrite trailing slash question

Deadly 提交于 2019-11-28 10:36:40

A wild guess: there is a directory named "news", and the the automatic Apache directory "add a trailing slash" redirect is kicking in and interacting with your RewriteRule in a weird way. If that's the case,

DirectorySlash Off

may help.

Maybe MultiViews is causing this behavior. Try to disable this option:

Options -MultiViews

Another guess: remove the leading slash in the substitution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!