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  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  How does default.aspx work?
Previous Previous
 
Next Next
New Post 6/16/2008 5:44 PM
User is offline Bruce Chapman
92 posts
www.iFinity.com.au
10th 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.

 


Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com
PartnerPoint | Community of Microsoft Partners
PartnerPoint is one of the largest and most active online communities of Microsoft Partners worlwide with over 8,000 members.
www.PartnerPoint.com

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