How to dispaly the same page for with www and without www

Discussion in 'Google' started by jimdp, Jan 17, 2010.

  1. #1
    Hi

    I have bought a domain through godaddy.

    My site is different with www and without www in front of site name...

    It is really confusing me and spoils my site


    Please help to solve this problem.

    Kindly tell me what all the steps should i make in Go daddy to solve at the earliest
     
    jimdp, Jan 17, 2010 IP
  2. Taiwan

    Taiwan Peon

    Messages:
    136
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    change it in your .htaccess file.
     
    Taiwan, Jan 17, 2010 IP
  3. Ant_C

    Ant_C Peon

    Messages:
    177
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What exactly is different? Is it not displaying properly, displaying old data or an entirely different site?

    Check the .htaccess file to make sure no re-directs are already in place.
     
    Ant_C, Jan 17, 2010 IP
  4. Ant_C

    Ant_C Peon

    Messages:
    177
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    .... and then do a redirect so the non www version will not show anyway, avoiding cannonical results.
     
    Ant_C, Jan 17, 2010 IP
  5. sfraise

    sfraise Peon

    Messages:
    453
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    301 redirect in .htaccess, google how to do it if you don't know.
    Also go to google webmaster tools and set preferred domain version.
     
    sfraise, Jan 17, 2010 IP
  6. makeit easy

    makeit easy Active Member

    Messages:
    2,067
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #6
    Add this to your .htaccess file:

    Alternatively, you may add this HTML code to your pages:

    <link rel="canonical" href="http://www.example.com" />
    HTML:
    More info: http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

    If you still have problem check your DNS setting if the A record and "www" point the same IP or www is alias.
     
    makeit easy, Jan 17, 2010 IP
  7. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #7
    Yes, a htaccess rule can do it.
    Alternatively, you can set a preferred domain at Google Webmaster Tools.
     
    Abhik, Jan 17, 2010 IP
  8. Lex350

    Lex350 Notable Member

    Messages:
    1,889
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    215
    #8
    This is all correct. Only thing I can add is Google recommends that you focus on one or the other, not both. So pick one and promote only that url everywhere including on the site.
     
    Lex350, Jan 17, 2010 IP
  9. ukhotels

    ukhotels Peon

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    simply you can do 301 redirect.
     
    ukhotels, Jan 17, 2010 IP
  10. sexymassage

    sexymassage Guest

    Messages:
    138
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    if you use dreamhost, you can set up the function at your web host panel.
     
    sexymassage, Jan 17, 2010 IP
  11. prashant.jain

    prashant.jain Greenhorn

    Messages:
    97
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #11
    Hi,

    You should check your site and Check the .htaccess at the control panel of your site. Best way to solve this issue is 301 redirect or URL. Ask your site developer to do this for you, he will have to create one script, which will run on server side and automatically change the URL in the way you want them.
     
    prashant.jain, Jan 18, 2010 IP
  12. seofirstpage

    seofirstpage Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    yes, you can do 301 redirect.
     
    seofirstpage, Jan 18, 2010 IP
  13. jimdp

    jimdp Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    eh all thank you for your replies, will make the changes and update you
     
    jimdp, Jan 18, 2010 IP