urlMappings all folders must use default.apsx (2)

  • Thread starter Thread starter Edwin Knoppert
  • Start date Start date
E

Edwin Knoppert

Sorry, first message was posted prematurly :)

I'm trying to set the default page when accessing a (sub-)folder.
I know i can do it with IIS but i would like to do it with web.config.

http://www.mysite.com/ is the default.aspx in the root.

http://www.mysite.com/folder1 should be
http://www.mysite.com/folder1/default.aspx

I would like a global setting and not to map each folder.
Is this possible?
Providing a top-down list of possibilities would be even better..
 
Hi,

Edwin said:
Sorry, first message was posted prematurly :)

I'm trying to set the default page when accessing a (sub-)folder.
I know i can do it with IIS but i would like to do it with web.config.

http://www.mysite.com/ is the default.aspx in the root.

http://www.mysite.com/folder1 should be
http://www.mysite.com/folder1/default.aspx

I would like a global setting and not to map each folder.
Is this possible?
Providing a top-down list of possibilities would be even better..

According to Scott Guthrie, this should be possible in IIS7. In IIS5 and
6, you must use the IIS console for these settings, and it's not what
you want.

http://weblogs.asp.net/scottgu/archive/2006/04/20/Cool-new-IIS7-Features-and-APIs.aspx

With the current IIS, one solution would be URL rewriting, with your own
HttpHandler, for example.

HTH,
Laurent
 
Cool, wasn't aware IIS7 was out.
In some cases earlier i was told i should use ISAPI extensions (or filters).
Seems IIS7 is now up to date to asccomplish this all using .NET.
(For extentions i ever made use of an ordinary win32 compiler, not really
desired though)
 
Hi,

Edwin said:
Cool, wasn't aware IIS7 was out.
In some cases earlier i was told i should use ISAPI extensions (or filters).
Seems IIS7 is now up to date to asccomplish this all using .NET.
(For extentions i ever made use of an ordinary win32 compiler, not really
desired though)

Sorry I was not clear. AFAIK, IIS7 will be delivered as part of Vista
and Longhorn server only. If you're on XP, you're stuck with IIS5, and
on Win2003 server with IIS6.

Check www.iis.net for details, and of course http://weblogs.asp.net/scottgu/

HTH,
Laurent
 
Back
Top