Solved

How to make my site always show www subdomain

Posted on 2013-01-10
4
362 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
Comment Utility
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
Comment Utility
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
Comment Utility
@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
Comment Utility
thank you
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

8 Experts available now in Live!

Get 1:1 Help Now