Download DOWNLOAD
Forums FORUMS
Blogs BLOGS
Forge FORGE
Help HELP
Marketplace MARKETPLACE
DotNetNuke Home
You are here >   Community > Forums
Register  |  Login

DotNetNuke Forums

DotNetNuke ForumDotNetNuke ForumUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...Friendly URLsFriendly URLs
Previous
 
Next
New Post
1/23/2009 1: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 5: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 7: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

New Post
1/26/2009 7: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 8:26 AM
 

mamlin:

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

Previous
 
Next
DotNetNuke ForumDotNetNuke ForumUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...Friendly URLsFriendly URLs

Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Networks

Follow DNNCorp on Twitter Follow DNN Community on Twitter

LinkedIn

Sponsors

DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation

Hosted by MaximumASP