RewritePath and Directory Listing Page

Last post 07-19-2009 11:02 PM by Nai-Dong Jin - MSFT. 1 replies.

Sort Posts:

  • RewritePath and Directory Listing Page

    07-15-2009, 3:14 PM
    • Member
      point Member
    • msfit
    • Member since 07-15-2009, 6:26 PM
    • Posts 9

    I'm using RewritePath method in Application_BeginRequest block to run default.aspx in each request of each page of my site.

    It works fine: mysite.com/info/, mysite.com/contacsts/, ... -- all runs default.aspx
    There's neither "/info/" nor "/contacts/" folder in server.

    But if folder, for example "/orders/", exists on server:
    then http://mysite.com/orders/ doesn't work, instead of default.aspx, I see page titled "Directory Listing -- /orders/" and a list of files in the directory.

    I don't want this. I want use default.aspx. What can I do?

     

  • Re: RewritePath and Directory Listing Page

    07-19-2009, 11:02 PM
    Answer

    Hi,

    I suggest that you can refer the following link:

     http://digitalmihailo.blogspot.com/2009/01/setup-http-handler-for-particular.html

    Thanks.

    Michael Jin.
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)