Solved

How to make my site always show www subdomain

Posted on 2013-01-10
4
366 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
[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
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
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 shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

732 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