Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  How does default.aspx work?
Previous Previous
 
Next Next
New Post 6/16/2008 6:44 PM
User is offline Bruce Chapman
116 posts
www.iFinity.com.au
9th Ranked


Re: How does default.aspx work? 

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


Do you need a DotNetNuke Developer? and Free DotNetNuke Downloads
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  How does default.aspx work?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com
Code Endeavors, LLC
Do you Endeavor to Enhance your DotNetNuke designs by utilizing AJAX technologies to more efficient interactive web experiences
www.codeendeavors.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP