iis网址重定向无法正常工作

时间:2011-03-23 07:59:27

标签: iis url-rewriting web-config

嘿,我的redicret不工作,我不明白为什么。 我的规则如下:

<rewrite>
        <rules>
            <rule name="rewrite to article" stopProcessing="false">
                <match url="^showfirm.asp\?rubrik=([_0-9a-z-]+)" />
                <action type="Redirect" url="esbjerg/sog/?q={R:1}&amp;t=" redirectType="Temporary" />
            </rule>
        </rules>
    </rewrite>

当我尝试将网址与

匹配时
http://localhost/showfirm.asp?rubrik=sometexthere

我点击自定义404页面,而不是点击

http://localhost/esbjerg/sog/?q=sometexthere&t=

任何可以提供帮助的人?我使用带有urlrewriter 2.0的IIS 7.5

Ps:第一次做网址重定向:)

1 个答案:

答案 0 :(得分:0)

试试这个:

<match url="^showfirm\.asp\?rubrik=([_0-9a-z-]+)" />
相关问题