Solved

Switch URL to www

Posted on 2014-12-22
3
104 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 28

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 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