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 ...Friendly URLFriendly URL's
Previous
 
Next
New Post
2/15/2009 12:25 PM
 

Hi all.

All the URL's I notice in sites made with DNN, seem to have a lot of stuff tagged onto it. Like tabid and lots of folders etc!

Is it possible, or even widely used, to change these somehow so that all it shows is something like - www.testsite.com/welcome.aspx or www.testsite.com/Products/fancypc.aspx etc etc

Thanks, Paul.

 
New Post
2/15/2009 2:19 PM
 

it's a built in capability, edit your web.config file and set the url format to friendly i.e

urlformat="HumanFriendly"

to the following line in your web.config:

 <friendlyUrl defaultProvider="DNNFriendlyUrl">
      <providers>
        <clear />
        <add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]"  urlformat="HumanFriendly" />
      </providers>
    </friendlyUrl>

You can even build you own providers, see http://www.dotnetnuke.com/LinkClick.aspx?fileticket=1vDi5Hgy5zE%3D&tabid=478&mid=857 for more details - there are a number of popular ones such as http://www.ifinity.com.au/Products/Friendly_Url_Provider_For_DNN/

Cathal

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/15/2009 3:00 PM
 

fantastic, that is exactly what I was wanting!!! Thanks.

There seems to be quite a lot to DNN...I have just ordered the wrox book on DNN (only version 4 out just now whereas I have d/l v5, but its better than nothing!)...would this let me know a decent amount about dnn do you know?

 
New Post
2/15/2009 3:05 PM
 

the one problem with URL's this then leaves...is (after I change to friendly URL's) that I get a url like:

          http://localhost/dotnetnuke/Home/Testpage/test2.aspx

rather than

        http://localhost/Home/Testpage/test2.aspx

is there a built in way to remove the dotnetnuke part at all? or is this an issue with how I setup dnn in IIS? I added the site as an application to the default site. For some reason when I just add it as a normal website, I just get a blank page, so I set it up as an application!

 
New Post
2/15/2009 5:11 PM
 

The URL format you're seeing is because you have it as an application under the default site.

If you're setting up the default website to run DNN, do you have default.aspx defined as a default document?


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
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Friendly URLFriendly URL's


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