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 ...Redirect non-www URL to to wwwRedirect non-www URL to to www
Previous
 
Next
New Post
3/8/2012 7:56 AM
 

I've recently upgraded my site from DNN5x to 6.1.3 (iis7).  Since the upgrade I noticed that when I log in using a URL like www.mysite.com then  then navigate to a url like mysite.com (without the www), i am n longer logged in.

Also, the URL's from the menu structure sometimes point to the www url and other times dont. I havnt quite figured out the pattern here.  Anyway, I dont have much experience with the admin & config side of DNN  but my hosting provider has asked me to add the following lines to the web.config file just beneath the  </handlers>  in the <system.webServer> node.

<rewrite>
<rules>
<clear />
<rule name="WWW Rewrite" enabled="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" negate="true"
pattern="^www\.([.a-zA-Z0-9]+)$" />
</conditions>
<action type="Redirect" url="http://www.{HTTP_HOST}/{R:0}"
appendQueryString="true" redirectType="Permanent" />
</rule>
</rules>
</rewrite>

This didnt work & I just kept getting a config error like this..

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

anyone have any sugestions.

Cheers

 
New Post
3/8/2012 5:31 PM
 
Hi,

if you have a dedicated sever you can bind in IIS your site with the two url with and without www.
So both point to you website.
Navigate to you site by your www. url
In you Site Setting, Portal alias, just keep the alias with www.
HTH

Julien Girerd
DevPCI - DotNetNuke Experts France Communauté des utilisateurs francophone de DotNetNuke DNN-Connect
 
New Post
3/8/2012 6:39 PM
 
Thanks Julien,
its since been discovered that the URL rewrite module was missing in IIS.

Problem solved.
Cheers
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirect non-www URL to to wwwRedirect non-www URL to to www


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