Solved

Switch URL to www

Posted on 2014-12-22
3
101 Views
Last Modified: 2014-12-22
Hello,

I want visitors who access my site via domain.com to be switched to www.domain.com

Is this best done via IIS or DNS and how would I do it in that system?

Thanks,

Steve
0
Comment
Question by:skbohler
3 Comments
 
LVL 26

Accepted Solution

by:
Dan McFadden earned 400 total points
ID: 40513197
It is typically done at the IIS level with URL Rewrite.  Below is a how-to article describing what you need to do.

Reference link:  http://www.dotnetexpertguide.com/2011/08/iis-7-redirect-domaincom-to.html

Dan
0
 
LVL 7

Assisted Solution

by:Gauthier
Gauthier earned 100 total points
ID: 40513265
No need for URL rewrite in that scenario.
URL rewrite can cause conflict with compression, so if they are not needed avoid them.
just create a second website for domain.com and use the http redirect module
0
 

Author Comment

by:skbohler
ID: 40513285
Since the one site ends up bring forwarded to different domains based on the URL, the URL Rewrite (because it has conditions) seems to be the best choice for us. Thank you!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
I wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now