HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...How to redirect sitename.com to www.sitename.com (without 3rd party modules)?How to redirect sitename.com to www.sitename.com (without 3rd party modules)?
Previous
 
Next
New Post
4/5/2007 6:02 AM
 

Is it possible to configure DNN (4.4.1) out of the box to redirect any requests for http://sitename.com to http://www.sitename.com? I know I can do it with modules such as SSL_Module, but wondered if SiteURLs.config could be used.

I thought that just having a Portal Alias for www.sitename.com (i.e. no sitename.com alias) might do the trick, but I am finding that requests for http://sitename.com still work (i.e. are not redirected to http://www.sitename.com).

 
New Post
4/5/2007 9:15 AM
 
I too am interested in knowing what can be done for this, as I have the same problem with my site, but have yet to find a resolution...

-Mitchel Sellers
Microsoft C# MVP, MCITP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I recommend PowerDNN and 3Essentials for DotNetNuke Hosting and BaseCamp for project management
 
New Post
4/5/2007 9:42 AM
 

I have sites that respond to both definitions, with and w/o www, see collegeparkjudo.org and www.collegeparkjudo.org.  First, you have to define it in your domain registrar's definition of your site.  You should see a parameter for domain wildcards or subdomains or something like that, usually presented like *.yourdomain.com.  Second, you have to have both aliases in DNN, yourdomain.com, and www.yourdomain.com.  Third, you have to add both Host Headers to the definition of the DNN site in IIS, again, www.yourdomain.com and yourdomain.com.

That's what I did and it is working fine for me. 

Also, bear in mind that having your site respond to both forms of the domain definition may affect your search engine optimization (I read that somewhere).

Carlos

 

 
New Post
4/5/2007 10:02 AM
 
Correct due to some SEO issues among other issues (blog module related....) I am looking to fix the site to automatically redirect the non www URL to the actual www url.

-Mitchel Sellers
Microsoft C# MVP, MCITP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I recommend PowerDNN and 3Essentials for DotNetNuke Hosting and BaseCamp for project management
 
New Post
4/5/2007 3:32 PM
 

i don't fully  know what the problem is but you can create a simple httpmodule to fix this.


 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...How to redirect sitename.com to www.sitename.com (without 3rd party modules)?How to redirect sitename.com to www.sitename.com (without 3rd party modules)?


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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.