473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

urlMappings all folders must use default.apsx (2)

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..
Sep 5 '06 #1
3 1869
Hi,

Edwin Knoppert wrote:
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/archi...-and-APIs.aspx

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

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Sep 5 '06 #2
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)
"Laurent Bugnion" <ga*********@bluewin.chschreef in bericht
news:Oo**************@TK2MSFTNGP06.phx.gbl...
Hi,

Edwin Knoppert wrote:
>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/archi...-and-APIs.aspx

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

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Sep 5 '06 #3
Hi,

Edwin Knoppert wrote:
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
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Sep 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: AES/newspost | last post by:
My understanding -- I'm not an expert -- is that on (some? many? all?) standard Internet servers a URL can point to a subdirectory name followed by a backslash, and that links to this URL will...
1
by: Peter Larsson | last post by:
I'm testing the 2.0 Beta, I'm using Visual Web Developer Express Edition, running on windows 2000 server. When I run my site with the built in web-server the UrlMappings work great, but when I...
1
by: jazzMan007 | last post by:
Hi All - I'm using the new UrlMappings feature in an ASP.NET 2.0 application. I'm using the unique urls, mapped to shared files, in the site map. So for example, I have pages A, B, & C...all of...
1
by: Alexander Widera | last post by:
Hi, is there something new in .net 2.0 about the topic "urlMappings" regarding dynamic url "redirection" ? I want to call "/testpage/topic1/new.aspx" and it should redirect to...
2
by: Luke Dalessandro | last post by:
I have an application with the following layout /root/ /root/Default.aspx /root/web.config /root/child/ /root/child/web.config web.config has a custom configuration section "testSection"...
0
by: Rune B | last post by:
Hey Group Why does this urlMapping work just fine on the development webserver, but not at the IIS (6.0) ? <urlMappings enabled="true"> <add url="~/srs"...
0
by: Bill | last post by:
On an ASP.NET 2.0 server, is there a way I can use urlMappings with Classical ASP pages? The web.config file, in my web root, is this: <?xml version="1.0" ?> <configuration...
1
by: Edwin Knoppert | last post by:
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.
1
by: Nathan Sokalski | last post by:
I am using the <urlMappingselement in my Web.config file as follows: <urlMappings enabled="true"> <add url="~/worldnews.aspx" mappedUrl="~/viewlinks.aspx?category=World+News&section=Main"/>...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.