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 URLsFriendly URLs
Previous
 
Next
New Post
1/23/2009 5:25 PM
 

Josh Martin wrote

 I've come to trust the DotNetnuke community, and what comes from here, so I'm wondering, with the human friendly settings is there a way to write a rule that will replace default.aspx with Page_Title.aspx or something nifty? 

Hi Josh,

In web.config, go to the friendlyurl provider, and add  urlformat="HumanFriendly" after the regexMatch element, so that your statement looks like this:

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

Or have I misunderstood what you are tring to achieve?

 
New Post
1/26/2009 9:37 AM
 

BarryS wrote

Hi Josh,

In web.config, go to the friendlyurl provider, and add  urlformat="HumanFriendly" after the regexMatch element, so that your statement looks like this:

< add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includepagename="true" regexmatch="[^a-zA-Z0-9 _-]" urlformat="HumanFriendly" >< / add >

Or have I misunderstood what you are tring to achieve?

BarryS, This is literally the best tip I've seen.  I didn't even know this was an option! IMHO, it should be enabled by default.

 
New Post
1/26/2009 11:05 AM
 

dmeiser wrote
........BarryS, This is literally the best tip I've seen.  I didn't even know this was an option! IMHO, it should be enabled by default.

dmeiser-
Even considering how much of an improvement as "Human-Friendly" URLs are over standard DNN URLs, be cautious if enabling "human friendly" URLs for an already-established site.  The HF option has had various small issues (well, small until they affect you) right up through DNN 4.9.  This is probably one reason why the option has not been made the default (yet).

I believe things are more stable, now, but there is one issue you'll want to be aware of:  "bad" page names created in DNN versions prior to 4.9...
 
   DNN4774 (also DNN6306) -- Some page names cause failure to render page under HF option.
   http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=4774&PROJID=2

   DNN6597 (also DNN8420) -- Two pages with same name at same menu level result in 2nd page being inaccessible under HF.
   http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=6597&PROJID=2

Both items above have been address with a fix in 4.9 that now prevents you from creating DNN pages with names that will cause problems under the HF option.  Unfortunately, if you created pages with "bad" names in a version prior to 4.9 and then upgraded to 4.9.x (or 5.x) you may still run into problems if you enable the HF option.

Also, I have run into third-party modules that broke when using the HF option (though this was the fault of the modules rather than DNN).

 
FYI -- One other issue with the "HF" option that was recently fixed (4.9):

DNN7925:  HF option incorrectly returns fully-qulified URL instead of relative URL.
http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=7925&PROJID=2

 
-mamlin


esmamlin atxgeek.me
 
New Post
1/26/2009 11:23 AM
 

I'm going to attempt to use the web.config method mentioned.  Thanks for the reply and I'll let you know.

Josh

 


Josh Martin

 
New Post
1/26/2009 12:26 PM
 

mamlin:

Thanks for the Heads Up.  I'm using DNN5 and haven't run across any issues just yet.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Friendly URLsFriendly URLs


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