开发者_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
.
精彩评论