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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...CouldnCouldn't set desired friendly url in host settings
Previous
 
Next
New Post
3/12/2009 3:14 AM
 

Hi

In my local dnn website, i just wanted to change the friendly url.

I want to show url like http://localhost/dotnetnukeblog/Home/username instead of http://localhost/dotnetnukeblog/Home/tabid/38/Default.aspx.

In the host settings, when i set this, it doesn't work. only default url is displayed.

Any suggestions or solutions. Pls reply.

Thanks,

Swaminathan,

Web Application Engineer,

www.steadfastglobal.com

 
New Post
3/12/2009 4:59 AM
 

afaik you need third party friendly url providers to do that, and you need a change in iis so it will not error on empty directories


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
3/12/2009 8:36 PM
 

Swaminathan

The host-friendly url settings switch only changes the urls from default.aspx?tabid=38 to /home/tabid/38/default.aspx.

The 'rules' you can see for friendly urls are rewriting rules only.  That is, you can set up rules to convert a particular requested url into the default.aspx?tabid=xx format that DotNetNuke uses.  You cannot use these rules to change the way a Url looks.  In other words, you could create a rule to rewrite /home/username to default.aspx?tabid=38&user=username but you can't make the home page start generating urls with a users' username on the end of the url.  To do that you need to modify module code or similar.  It's particularly hard with the home page because that's what the majority of your external links will be to.

With regards to taking off the .aspx from the end, Erik is correct in that you can't do that with standard DNN either.  I have a module which can remove the .aspx for you if you like, but, as Erik says, you need to change IIS settings to get it to work.  If you're runnign IIS7, the module will do it for you automatically, but if you're on IIS6 you need to change the IIS configuration.  The module is available at http://www.ifinity.com.au/Products/Url_Master_DNN_SEO_Urls/

If you want to build a myspace/facebook/twitter style url like www.mysite.com/username then you're going to have to delve into the deep dark world of Url Rewriting quite deeply and write custom code.  There's no switch on DNN to magically make it start working.

 
New Post
3/12/2009 9:25 PM
 

I wish we could toggle this setting via the host settings page, but you'll have to manually edit the web.config to enable the "HumanFriendly" provider. You need to add the urlformat="HumanFriendly" to the friendlyUrl provider configuration node in the web.config. It won't be exactly like the ifinity commercial product, but it's free and way nicer than the default mode.

<add name="DNNFriendlyUrl" ... urlformat="HumanFriendly">


Once again, if the core provided a public SVN trunk, maybe we'd have a setting to adjust in host settings. However, when everything is hidden behind "secret" settings, and the documentation is paid only, things like this will be bound to happen...

 
New Post
3/13/2009 2:08 AM
 

Hi Bruce,

Thanks for such a detailed suggestion.

Even if the url comes like http://localhost/dotnetnukeblog/Home/Default.aspx  or http://localhost/dotnetnukeblog/Home/  , it is fine for me.

And for showing a blog page, i want  url like http://localhost/dotnetnukeblog/Home/BlogID/Blog name/Default.aspx or http://localhost/dotnetnukeblog/Home/BlogID/Blog name/   instead of http://localhost/dotnetnukeblog/Home/tabid/38/BlogID/6/Default.aspx

since showing extension is fine for me, i don't need that module.which you have specified.

I just don't want to show that default.aspx and tab id in the url.

Awaiting your suggestion.

Thanks,

Swaminathan

Web Application Engineer,

www.steadfastglobal.com

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...CouldnCouldn't set desired friendly url in host settings


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