Solved

How to make my site always show www subdomain

Posted on 2013-01-10
4
365 Views
Last Modified: 2013-01-16
IIS7

The way my site works right now is even if you type into the browser "mycurrenwebsite.com" it will redirect to "www.mycurrenwebsite.com"

But, if I type in "mycurrenwebsite.com/mypage.html" it will redirect to 404 page.
If I type in "www.mycurrenwebsite.com/mypage.html" then it will show the page correctly.

What can I do to always redirect to a www version? So that even if I type in "mycurrenwebsite.com/mypage.html" it will redirect me to
"www.mycurrenwebsite.com/mypage.html"
0
Comment
Question by:vituxa
4 Comments
 
LVL 10

Expert Comment

by:djcanter
ID: 38763452
create a cname (dns) record for mycurrentwebsite.com to point to www.mycurrentwebsite.com
0
 
LVL 10

Accepted Solution

by:
ivanovn earned 500 total points
ID: 38763580
You can also configure a URL redirect as outlined in this tutorial:
http://www.dotnetexpertguide.com/2011/08/iis-7-redirect-domaincom-to.html
0
 
LVL 30

Expert Comment

by:Brad Howe
ID: 38764820
@Ivanovn  is correct.

You want to install the IIS URL Rewrite module which is free on your web server. Once installed, you can setup a basic conanical name rewrite rule to always ensure domain.com/XXXXXX/xXXX/xXX is always sent to www.domain.com/....

Cheers,
Hades666
0
 
LVL 1

Author Closing Comment

by:vituxa
ID: 38784282
thank you
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
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…

820 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