Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How does default.aspx work?How does default.aspx work?
Previous
 
Next
New Post
6/16/2008 8:44 PM
 

I know this question has already been answered, but I thought I'd add one more piece to it. 

The conversion of the http://localhost/dotnetnuke/Admin/SiteSettings/tabid/39/Default.aspx to the correct page is done with the HttpModule, as correctly stated.  The actual translation of the full Url to /localhost/dotnetnuke/default.aspx?tabid=nn is done by the regex filters in the siteurls.config file.   These match the incoming Url and rewrite it to the value in the 'sendTo' value of the rule.

Your original question was 'how does it know there is a default.aspx' in each subdirectory is probably prompted by the sight of the /default.aspx on the end of each request.  In fact, you don't need to put this there.  There are only two things needed in a Friendly Url for the standard SiteUrls.config rules :

- the /tabid/nn/ path

- an .aspx extension so that IIS can direct the request to ASP.NET, and, accordingly, DNN.

You can actually request http://localhost/dotnetnuke/catch/my/tabid/39/my-pink-flying-pig.aspx and it will still work.  The default.aspx is just there for historical reasons.  The ventrian news articles module uses the ability to replace the /default.aspx with any Url-valid value, as will (I believe based on Gemini) the Blog module in a future release - this gives a better looking and more search-engine friendly page name.

This changes when you enable human friendly Urls (ver 4.6+).  Then the tab path is used to reverse lookup the tab based on the path like /dotnetnuke/mypage.aspx (mypage) and rewrite the Url to /default.aspx?tabid=nn based on the table lookup.

-Bruce

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How does default.aspx work?How does default.aspx work?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out