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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can pages not show file type (.aspx) ?Can pages not show file type (.aspx) ?
Previous
 
Next
New Post
3/31/2010 12:55 PM
 

Just installed my first TEST instance of DNN.  I'm enjoying it.

Quick question on when I create a new page.  Rigth now, they end up having the extension .aspx on the end of each file.  Is there a way to not have that who up?

Instead of getting www.Example.com/Pages/MagicMountain.aspx

I'd like to get

www.Example.com/Pages/MagicMountain

 

thanks


Java man becoming a .NET fan.
 
New Post
3/31/2010 1:27 PM
 

DNN itself doesn't support this out of the box, but there are tools to make this possible. Check out http://www.ifinity.com.au 's URL Master module, it will allow you to do this. 


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/31/2010 1:37 PM
 

If you have IIS7 or IIS7.5 you can also do this using the URL Rewrite module found on IIS.net.  It does not give you the flexibility to manage the URL's directly in DNN, but does work.  The other problem is that DNN, by default, will link your pages as "mypage.aspx" rather than "mypage."  There may be a workaround for that, but it's not something I've ever tried.

Your basic setup would be a rewrite rule that takes a page not ending in ".aspx" and rewrites it to include .aspx.  I've done this with my login page (eg mysite/login rewrites as mysite/login.aspx) - however the rule can be generalized to include anything not ending with a file extension or ending only in a directory.

 
New Post
3/31/2010 10:01 PM
 
Thanks Chris for the link. Just to add to this thread : there's not much point going down the route of trying to plumb in another .net rewriter and configure it that way. When dealing with Urls in DNN, you have to deal with three areas: - rewriting (converting a friendly url into /default.aspx?tabid=xx etc - friendly url generation : making sure the Urls generated and used within the framework appear as you want. The Friendly Url Generation process provides the links for all the menus, module links, etc etc. - redirection : if you update your Url scheme to , say, remove the .aspx extension, you need to be able to handle all the urls that still have the .aspx extension on them, and make sure the user (or search engine) ends up where you want them to. I've written on this topic in much more detail at http://www.ifinity.com.au/Blog/EntryId/61/Understanding-DotNetNuke-Friendly-Urls-and-Url-Rewriting-for-SEO I sat down to solve this exact problem 3 years ago and the Url Master / Friendly Url Provider modules are the result. You could mess about with other tools to try and fix it and reinvent the wheel, but trust me on this one, you're far better off with a proven solution that plugs straight into the framework and save your programming talent for other problems.
 
New Post
4/1/2010 11:02 AM
 

Yeah, I agree.  It looks like this will be a shortcut that is well worth it. 

Thanks everyone for your advice.


Java man becoming a .NET fan.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can pages not show file type (.aspx) ?Can pages not show file type (.aspx) ?


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