?
Solved

How to make my site always show www subdomain

Posted on 2013-01-10
4
Medium Priority
?
368 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 2000 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

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

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month9 days, 5 hours left to enroll

764 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