local idiot
local idiot

Reputation: 97

mod-rewrite not getting value

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?

Upvotes: 1

Views: 55

Answers (1)

Gumbo
Gumbo

Reputation: 655489

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

Upvotes: 2

Related Questions