« Previous Next »

Thread: Rewrite Maps Question

Last post 08-20-2009 3:46 PM by anilr. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 08-20-2009, 3:17 PM

    • hats
    • Not Ranked
    • Joined on 08-20-2009, 7:03 PM
    • Posts 4

    Rewrite Maps Question

     Hi,

    I have created a rewrite map in iis 7 with one redirect rule. When I look at the rule in edit mode in iis it says that it is a permanent (301) redirect, which is what I want. How ever when I look in the web.config file I don't see anything to indicate that the redirect is permanent. Is this a bug? Do I need to add anything to the rule directly in the web.config to make the redirect permanent? Here is what I see in the web.config:

                    <rule name="Redirect rule1 for TestMap">
                        <match url=".*" />
                        <conditions>
                            <add input="{TestMap:{REQUEST_URI}}" pattern="(.+)" />
                        </conditions>
                        <action type="Redirect" url="{C:1}" appendQueryString="false" />
                    </rule>

     

  • 08-20-2009, 3:24 PM In reply to

    Re: Rewrite Maps Question

    Hello,

    I found the following post describing 301 redirects using rewrite:

    http://knowledge.freshpromo.ca/seo-tools/301-redirect.php

    It would appear you would need to add the following:

    redirectType="Permanent"

    Hope this helps!

    Brock Hensley
    Technical Support Representative
    http://www.ServerIntellect.com

    Managed Servers, 24x7 U.S. Support, Web Hosting Solutions.
  • 08-20-2009, 3:46 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Rewrite Maps Question

    Permanent is the default value, so it does not need to be explicitly mentioned in config.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (3 items)
Microsoft Communities