开发者

mod-rewrite not getting value

开发者_StackOverflow中文版RewriteRule ^department/([a-z]+)$ department.php?dep=$1

I can not get the value of dep when I use the forward slash in: RewriteRule ^department/([a-z]+)$ department.php?dep=$1

However if I change it to:

RewriteRule ^department-([a-z]+)$ department.php?dep=$1

it works fine.

What's up with the mod rewrite when trying to mimic folders?


This behavior is probably due to MultiViews. Try to disable it with Options.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜