urlMappings all folders must use default.apsx (2)

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..
 
L

Laurent Bugnion

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
 
E

Edwin Knoppert

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)
 
L

Laurent Bugnion

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top