?
Solved

Switch URL to www

Posted on 2014-12-22
3
Medium Priority
?
106 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Accepted Solution

by:
Dan McFadden earned 1600 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 400 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

801 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