开发者

IIS 7 URL Rewrite doesn't work if the url has a question mark in it

开发者 https://www.devze.com 2022-12-18 17:09 出处:网络
I\'m using the URL rewrite feature of IIS7 I\'m trying redirect a URL like this example.com/?parameter=abc

I'm using the URL rewrite feature of IIS7

I'm trying redirect a URL like this

example.com/?parameter=abc 

to a URL like this

example.com/somedirectory

the URL redirect works we开发者_开发技巧ll if the source URL doesn't contain a question mark in it.

pls help

-Vivek


IIS7 redirects don't by default match query strings in the pattern so you have to add a condition as well as the pattern with {QUERY_STRING} matches the pattern parameter=abc

0

精彩评论

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