开发者

mod-rewrite not getting value

开发者 https://www.devze.com 2023-02-04 14:18 出处:网络
开发者_StackOverflow中文版RewriteRule ^department/([a-z]+)$ department.php?dep=$1 I can not get the value of dep when I use the forward slash in:

开发者_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

精彩评论

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