www.mysite.com vs mysite.com in SEO

How do I prevent SEO from seeing www.mysite.com and mysite.com as two competing sites and, hence, reducing page rank and listing duplicate content?
Bob SchneiderCo-OwnerAsked:
Who is Participating?
 
GaryConnect With a Mentor Commented:
Add to your web.config (using your real site name)

<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Redirect to www" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^mysite.com$" />
          </conditions>
          <action type="Redirect" url="http://www.mysite.com/{R:0}" redirectType="Permanent" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer> 
</configuration>

Open in new window

0
 
RafaelCommented:
update your DNS "A: record and C Name
0
 
Bob SchneiderCo-OwnerAuthor Commented:
Update it how?
0
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.

 
RafaelConnect With a Mentor Commented:
you have to go to whomever is controlling your DNS. You're service provider like Go-Daddy etc.
0
 
Bob SchneiderCo-OwnerAuthor Commented:
Ok and have them make what change?   I am using GoDaddy so I can make the change, but what change to I make there?
0
 
COBOLdinosaurCommented:
Godaddy does not give access to the name servers? .... wow that is lame; really lame.

Cd&
0
 
GaryCommented:
Godaddy does not give access to the name servers
Says who?
0
 
COBOLdinosaurCommented:
That was the questin I was asking.  Why would he need go daddy to do the change its like a 10 second thing.

Cd&
0
 
GaryCommented:
Gotcha!
0
 
Ashish JainCommented:
Hello,
Your site has canonical issues and you can solve it with htaccess or by 301 permanent redirect to either www.example.com or example.com from which you want to get it crawled. It will solve your problem and also you will get good results regarding to Google keyword ranking.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.