开发者

IIS 7 URL Rewrite difficulties

To configure an IIS rewrite rule to redirect traffic to my site to a different URL.

Basically I am trying to redirect this url: www.sharepointalex.co.uk to www.sharepointalex.co.uk/blog. At the moment it is pointing at the root of my site (a wedding website I setup for my partner and I).

www.sharepointalex.co.uk is a domain pointer on WinHost.

The rule I have so far is:

<rules>
    <rule name="Blog" patternSyntax="ExactMatch" stopProcessing="true">
        <match url="www.sharepointalex.co.uk" />
        <action type="Redirect" url="{R:0}/blog" redirectType="Temporary" />
        <conditions>
            <add input="{HTTP_HOST}" pattern="www.sharepointalex.co.uk" />
        </conditions>
    </rule>
</rules>

However this doesnt seem to work.

Any help would 开发者_高级运维be greatly appreciated.

Cheers


The match URL should not include the host name.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜