Removing default page from URL

Discussion in 'ASP.NET 2.0' started by ewright, May 8, 2008.

  1. When I access my site using the domain name, the default page is added to the URL. I cannot figure out how to stop that from happening.

    I am using the URLRewritingNet dll to rewrite all other URLs on the site. As far as I can determine, there is nothing I have configured to cause the default page to be added.

    Any suggestions?
     
  2. The problem turned out to be with the settings I had for the URLRewritingNet configuration. There is a DefaultPage setting that was the culprit. I had tried changing that setting and did not think it was involved, but the line was removed completely, the rewrite to the default page stopped.
    <urlrewritingnet
    rewriteOnlyVirtualUrls='true'
    contextItemsPrefix='QueryString'
    ***********defaultPage = 'default.aspx' ***********
    xmlns='http://www.urlrewriting.net/schemas/config/2006/07' >
     
  3. Can you give us the URL so we can also see it on our end?

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page