locked
url rewriting RRS feed

  • Question

  • User-1044034148 posted

    Hi i am trying to get url rewriting to work for the first time, i can not get it to work so far, can someone help

    i am using the example from http://www.urlrewriting.net/149/en/home.html

    should this work on localhost or does it have to be on IIS? I have tried both but get nothing.

    i am trying to get the following to work.

    url = /Default.aspx?id=1

    rewite = /default_test/

    i have the ddl referenced and i have the following web.config setting.

    <urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="default.aspx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
            <rewrites>
                <add name="Rule1" virtualUrl="^~/(.*)Default(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/Default.aspx?language=$1&amp;id=$2" ignoreCase="true"/>
            </rewrites>
        </urlrewritingnet>

    Saturday, January 1, 2011 8:40 AM