开发者

iis url redirect not working

Hey there my redicret is not working and i don't understand why. My rule looks like this :

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

When i try to match the url with

http://localhost/showfirm.asp?rubrik=sometexthere

I hit my custom 404 page, instead of hitting

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

Anyone who can help ? Im using an IIS 7.5 with urlrewriter 2.0

Ps : First time doing an url redirect :)


Try this:

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜