Register   Login
     
  Categories  
  Archives  
  Authors  
  Blog  
10

I've just checked in some minor changes for Friendly URLs for DotNetNuke.

In 3.1.1, I introduced a change to only rewrite alphanumeric and the space character. (Everything else would be left in the querystring).

For example:-

http://www.dotnetnuke.com/default.aspx?tabid=5&path=folder1/folder2

Becomes:-

http://www.dotnetnuke.com/tabid/5/default.aspx?path=folder1/folder2

This worked as designed and helped to alleviate a number of special character issues we were having. However, it also caused some common URLs not to be rewritten, these involved the dash (-) and the underscore (_) character. These are commonly used when selecting a language. (e.g. en-AU)

So for 3.2, these characters will be rewritten into the URL. Moreover, you can also customise the regular expression in the web.config as now it belongs to the provider as an attribute as follows:-

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

Comments

koskimaki
# koskimaki
Monday, October 10, 2005 5:10 PM
While you guys are at it, why not also add human friendly URLs as an option! :) Still hoping.....
smcculloch
# smcculloch
Monday, October 10, 2005 5:38 PM
It's probably too late for 3.2, but I hope to have an alternate provider that will do it.

3.2 is getting locked down to prepare for asp.net 2
Anonymous
# Anonymous
Monday, October 17, 2005 11:19 AM
Can spaces be replaced with a hyphen?

For example; /SkinObjects/ becomes /Skin-Objects/

Nicer for google to index.

Post Comment

Name (required)

Email (required)

Website

Enter the code shown above: