site command

Discussion in 'Google' started by superpump, Dec 11, 2006.

  1. #1
    for site x.com i get a different set of results than if i do, site:www.x.com which should i be doing, and is there anything I can do to make them match?
     
    superpump, Dec 11, 2006 IP
  2. manageyourlinks

    manageyourlinks Peon

    Messages:
    399
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    well the real question here is what are you looking for? all the pages on your site?

    if thats the case then what I quoted should work.
     
    manageyourlinks, Dec 11, 2006 IP
  3. visio

    visio Well-Known Member

    Messages:
    1,838
    Likes Received:
    91
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Google sees them as two different pages: http://mydomain.com and www.mydomain.com will be indexed individually. Use a 301 redirect to redirect http:// to www.
     
    visio, Dec 11, 2006 IP
    KC TAN likes this.
  4. artistlyrics

    artistlyrics Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    A 301 redirect is generally what is used to solve such a problem.

    Here is resource: webconfs.com/how-to-redirect-a-webpage.php
     
    artistlyrics, Dec 11, 2006 IP
  5. adnan

    adnan Peon

    Messages:
    1,614
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I always add the www prefix

    don't know if its correct, but do it by habit
     
    adnan, Dec 11, 2006 IP
    saadahmed007 likes this.
  6. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #6
    As what mentioned by Visio, use 301 redirect or change the setting under preferred domain in your Google Sitemap account.
     
    KC TAN, Dec 12, 2006 IP
  7. superpump

    superpump Peon

    Messages:
    1,419
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #7
    So to redirect using php, is it a one time thing, or do I have to go through and redirect each page on my site? My coding knowledge is not good, if it is a one time job and somebody is willing to get paid for donig it, then hit me up on msn (superpumb05@hotmail.com) thanks.
     
    superpump, Dec 12, 2006 IP
  8. visio

    visio Well-Known Member

    Messages:
    1,838
    Likes Received:
    91
    Best Answers:
    0
    Trophy Points:
    185
    #8
    Someone provided a link above that should get you what you need. It is a onetime thing for the one page. Php redirects don't work the same so be sure it is 301. Do you know if your hosting is linux or windows?
     
    visio, Dec 12, 2006 IP
  9. superpump

    superpump Peon

    Messages:
    1,419
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #9
    so will inserting the php code fix my entire site? or do i need to fix each page individually?
     
    superpump, Dec 12, 2006 IP
  10. manageyourlinks

    manageyourlinks Peon

    Messages:
    399
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #10
    i think redirects are best used in the .htaccess file and not php code for what your trying to do.
     
    manageyourlinks, Dec 12, 2006 IP
  11. visio

    visio Well-Known Member

    Messages:
    1,838
    Likes Received:
    91
    Best Answers:
    0
    Trophy Points:
    185
    #11
    Its not php but inserting one piece of code will change http:// >> www. for all pages.
     
    visio, Dec 12, 2006 IP
  12. Revamped Solutions

    Revamped Solutions Active Member

    Messages:
    1,347
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #12
    Everything is all set.

    Let me know if you need anything else done.
     
    Revamped Solutions, Dec 13, 2006 IP