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 ...fix virtual directory / subdirectory in URL to make more friendlyfix virtual directory / subdirectory in URL to make more friendly
Previous
 
Next
New Post
2/22/2009 8:24 PM
 

Hi there..

yes I do have a site where it works but I don't like to post my site URL's on here.

Make sure your

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

 

is in the  right spot.  It shouldn't be directly under <add key="RemoveAngleBrackets" value="true" />... rather, it should be far below ... the first part should be there.  All you should have to add is the urlformat="HumanFriendly"

 

 

 
New Post
4/10/2009 7:17 PM
 

M, Thank you very much! That works beautifly. I will be doing this on all my new sites.

One thing I did find as a tip for the next person that tries this. If you are on your site when you make these changes, I would recommend either closing your browser or at very minimum retype the url (i.e.http://www.yoursitename.com) or you will not see your changes take affect. Just clicking one of your page links will not show you the new urls. (at least that is what I found)

 
New Post
11/13/2009 9:31 PM
 

For some reason I can't get this to work.

I installed DotNetNuke into mydomain.com/DNN folder (instead of the root) as per GoDaddy's instructions. In the Host, Portals screen it shows mydomain.com/DNN as an alias for the host portal 0.

Then I created a child portal in /DNN/newsite to develop and test the new site. In the Host, Portals screen it shows mydomain.com/DNN/newsite as an alias for portal 1. Okay, so far, so good. Once I wanted to take the site live I added mydomain.com as another alias to portal 1. There is a default.aspx file in the root directory with the line: window.location="mydomain.com/DNN/newsite". Point a browser to mydomain.com and the new site's home page comes up with the url reading: http://www.mydomain.com/DNN/default.aspx?alias=www.mydomain.com/DNN/newsite.

From there all of the site's menu links are in the form http://mydomain.com/DNN/newsite/home.aspx as I've already added the HumanFriendly url flag. I want to strip out the /DNN/newsite so I added that to the HostHeader line as you described and set the brackets flag to True. Closed browser, cleared cache, tried it again and it's still in there. Now, the interesting thing is that if I just put /DNN in the HostHeader I can type in mydomain.com and it still goes to the home page just fine but the url reads http://mydomain.com/DNN, and all of the menu links are in the form http://mydomain.com/home.aspx but they return 404 error. That's the form I was after but something isn't resolving correctly.

BTW, I've also tried adding just /newsite in HostHeader but it says it can't resolve, and I've tried deleting the alias mydomain.com/DNN/newsite from portal1 but then I get a default DNN page.

Any thoughts?

Thanks,

Jay

 
New Post
11/17/2009 3:26 PM
 

Bump...

Would anyone know where I could find more documentation to research this issue?

Cheers,
Jay

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...fix virtual directory / subdirectory in URL to make more friendlyfix virtual directory / subdirectory in URL to make more friendly


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