smcculloch posted on October 10, 2005 03:44
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>