Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • hetaurhet 245 posts 267 karma points
    Aug 06, 2011 @ 11:49
    hetaurhet
    0

    use of web.config for rewrite and redirect rules

    hello

    using umbraco 4.7.

    in web.config when we add rule as below, umbraco CMS doesnot shows left-side node structure.... say content, developer... so what is the problem in this?

    <system.webserver>

    <rewrite>
                <rules>
                    <clear />
                    <rule name="RedirectUserFriendlyURL1" stopProcessing="true">
                        <match url="^Default\.aspx$" />
                        <conditions>
                            <add input="{REQUEST_METHOD}" negate="true" pattern="^POST$" />
                            <add input="{QUERY_STRING}" pattern="^booktype=([^=&amp;]+)&amp;searchtext=([^=&amp;]+)&amp;page=([^=&amp;]+)$" />
                        </conditions>
                        <action type="Redirect" url="{C:1}/{C:2}/{C:3}" appendQueryString="false" redirectType="Permanent" />
                    </rule>
                    <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
                        <match url="^([^/]+)/([^/]+)/([^/]+)/?$" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="Default.aspx?booktype={R:1}&amp;searchtext={R:2}&amp;page={R:3}" />
                    </rule>
                </rules>
            </rewrite>

    </system.webserver>

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies