473,394 Members | 1,951 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,394 software developers and data experts.

One default page for each directory

I do know if this is the right Group to post this question....

well, here I go..

I would like to know how can i do this

I would like to let my users typing ONLY "www.mysite.com/sp", to do
directty to the "default" page for this directory ....let´s say
"www.mysite.com/sp/default.aspx"

and

typing ONLY"www.mysite.com/en", to load the default page of the english
directory "www.mysite.com/en/default.aspx"
How can this be done?

- How can I configure my IIS to have "several default pages"..one in
each directory

- Should I do this programatically..

any help would be appreciated
Thanks, Alberto

Feb 15 '06 #1
4 1846
What version of .NET are you using?

The process of hiding query strings behind directory facades is
referred to as URL Rewriting...

There are many ways to implement URL Rewriting (IIS, ISAPI, Application
level)
From my experience most rewriting occurs at the application level, at

this level you generally configure your application through the
web.config or global.asax file

For more information see the following links:
.NET v2.0:
http://www.urlrewriting.net/en/default.aspx
.NET v1.1:
http://www.codeproject.com/aspnet/URLRewriter.asp

http://msdn.microsoft.com/asp.net/re...lrewriting.asp
google "Url rewriting .net 1.1"

Feb 15 '06 #2
Hellow Gordowey,

If I understand your question/situation correctly, you want to load a
default page when the user goes to a particular subdirectory. You can use IIS
to configure default documents for you website. Go to Control
Panel.Adminstrative Tools.Internet Information Services and choose the
properties for the website you wish to configure. Under the Documents tab for
the website choose to enable Default Documents (the default is enabled). and
then choose the order and name of the documents. For each subdirectory on the
website, IIS will look for those documents in that order. I don't think you
have to do anything programatically.

In the case that you host the website with a hosting service, they will in
most probability have some type of control panel application where you can
choose the name and order of the default document/page to be loaded.

--
enjoy - brians
http://www.limbertech.com
"Gordowey" wrote:
I do know if this is the right Group to post this question....

well, here I go..

I would like to know how can i do this

I would like to let my users typing ONLY "www.mysite.com/sp", to do
directty to the "default" page for this directory ....let´s say
"www.mysite.com/sp/default.aspx"

and

typing ONLY"www.mysite.com/en", to load the default page of the english
directory "www.mysite.com/en/default.aspx"
How can this be done?

- How can I configure my IIS to have "several default pages"..one in
each directory

- Should I do this programatically..

any help would be appreciated
Thanks, Alberto

Feb 16 '06 #3
Ahh, the simple truth.. :)

Thanks, Brians..

Feb 16 '06 #4
Thanks all, for your comments, That helps me to find the way,

Alberto

Feb 16 '06 #5

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

Similar topics

1
by: SPG | last post by:
Hi, I am relatively new to TOMCAT, and am trying to deploy a web app using it. I have a domain name that I want to use to access my web app directly. By default, I deploy my WAR, and it deploys...
0
by: John Caruthers | last post by:
HELP! This problem is driving me crazy. All other web sites that are being served out through this server are working, including sites and virtual directories that are under the Default Web...
8
by: whtevr | last post by:
Consider this HTML on an ASP page called default.asp in a virtual directory: <FORM name="Flogin" id="Flogin" action="" method=post> </FORM> Do I HAVE to put the literal "default.asp" into the...
2
by: Jon Booth | last post by:
I am using ascx controls to build headers and footers for my wbe application. 3 questions 1) How do I set it so that when I create a new web form created inherits from my SecurePage class and...
1
by: js | last post by:
Does anyone know how to create a web project with Visual Studio.Net 2003 on IIS6 running on Windows Server 2003? The IIS has the default website disabled, and a new website is created. I have...
9
by: David Veeneman | last post by:
I'm just getting started with ASP.NET, using VS 2005. As an exercise, I opened the root web site in VS 2005 and created a simple welcome page. I saved the page as Default.aspx and made sure that...
0
by: damiensawyer | last post by:
Hello all, I'm very new to all of this. I have a theme and a skin (the standard ones). I have a standard master page which is holding a custom ascx which has a treeview in it. Can someone...
4
by: Nobody | last post by:
Hi, I'm using ASP.NET w/ Visual Studio 2005 and the .net development server... how do I set the default start up page? right now when I go to http://localhost/WebSite I get a directory listing....
1
by: Dave Bender | last post by:
I'm confused about whether a web application needs to be defined in IIS as an "application" to run. We have a client who has a medium sized web site (~2,000 pages), including some ASP and some...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.