« Previous Next »

Thread: rewrite http://web1.com/web1/def.aspx to http://web1.com/def.aspx

Last post 11-14-2008 12:39 PM by ruslany. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 11-13-2008, 9:25 PM

    • jimmarq
    • Not Ranked
    • Joined on 11-14-2008, 2:23 AM
    • Posts 1

    rewrite http://web1.com/web1/def.aspx to http://web1.com/def.aspx

     Is it possible to rewrite http://web1.com/web1/def.aspx to http://web1.com/def.aspx?

     It seems like it should be possible, but it's not working for me.  Here is a rule I'm using.

                        <match url="web/*" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="{R:1}" appendQueryString="false" />
                    </rule>

    I can browse to http://web1.com/web1/def.aspx, but it shows up as is.  It is not being rewritten.

    Any suggestions?

  • 11-14-2008, 12:39 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 661

    Re: rewrite http://web1.com/web1/def.aspx to http://web1.com/def.aspx

    The rule pattern is "web/*" but you browse to web1/dev.aspx, which does not match the pattern.

    http://ruslany.net
Page 1 of 1 (2 items)
Microsoft Communities