Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

One default page for each directory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gordowey - 15 Feb 2006 21:13 GMT
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
kahtava@gmail.com - 15 Feb 2006 23:23 GMT
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/reference/extend/default.aspx?pull=/library/en
-us/dnaspp/html/urlrewriting.asp

   google "Url rewriting .net 1.1"
brians[MCSD] - 16 Feb 2006 00:41 GMT
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.

Signature

enjoy - brians
http://www.limbertech.com

> I do know if this is the right Group to post this question....
>
[quoted text clipped - 21 lines]
>
> Thanks, Alberto
kahtava@gmail.com - 16 Feb 2006 00:52 GMT
Ahh, the simple truth.. :)

Thanks, Brians..
Gordowey - 16 Feb 2006 19:10 GMT
Thanks all, for your comments, That helps me to find the way,

Alberto

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.