开发者

Setting up a URL Redirect in IIS 7

开发者 https://www.devze.com 2023-04-12 02:04 出处:网络
I need to have a single, non-reg-ex pattern url to either rewrite or redirect to.开发者_运维百科I d\'loaded URL Rewrite 2.0 for IIS7 but each option requests for a pattern to test, of which I have non

I need to have a single, non-reg-ex pattern url to either rewrite or redirect to.开发者_运维百科 I d'loaded URL Rewrite 2.0 for IIS7 but each option requests for a pattern to test, of which I have none.

I created an Inbound Rule but I don't know what to do about the Pattern field. I'm not searching for anything more than an exact url to point to. This is what I entered:

Requested URL: Matches the Pattern

Using: Exact Match

Pattern: http://foo.bar/virtual/url/ (ignore case checked)

Action Type: Redirect

Redirect URL: http://foo.bar/?blah=1&meh=3&etc....

Redirect Type: 302


Nevermind, found an excellent tutorial on how to do this. Turns out it's a mapping entry, no regex required. Thank god!

URL Rewrite Walkthrough

0

精彩评论

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

关注公众号