1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

www and non-www help?

Discussion in 'White Hat SEO' started by hutchy2010, Aug 25, 2010.

  1. hutchy2010

    hutchy2010 Newbie

    Joined:
    May 3, 2010
    Messages:
    19
    Likes Received:
    2
    I use google webmaster tools to check my page rank and keywords. I have set my prefered domain to my site with www . The keywords for my site with www are as I want them, the words I think people will search for have high significance however the site without www has completely different keywords that have nothing to do with my site. Will this be affecting my google ranking? and how can i change this so the keywords are the same?
     
  2. pinko

    pinko Newbie

    Joined:
    Feb 2, 2010
    Messages:
    31
    Likes Received:
    2
    Maybe a 301 redirect from "non www" to "www" pages?
     
  3. georgegaskin

    georgegaskin Registered Member

    Joined:
    Nov 28, 2009
    Messages:
    99
    Likes Received:
    8
    Location:
    Long Branch NJ
    Hi I just started a 301 redirect thread last night.This will take care of you problems,not sure how to do it for you. I have windows server and i am using plain html.Check out the link 301 redirect for non www to www
     
  4. antrvant

    antrvant Junior Member

    Joined:
    Jul 28, 2010
    Messages:
    198
    Likes Received:
    14
    Home Page:
    use htaccess to change non www --> www

    PHP:
    # Redirect non-www to www 
    RewriteCond %{HTTP_HOST} !^www\. 
    RewriteRule (.*) http://www.youdomain.com/$1 [R=301,L] 
     
  5. georgegaskin

    georgegaskin Registered Member

    Joined:
    Nov 28, 2009
    Messages:
    99
    Likes Received:
    8
    Location:
    Long Branch NJ
    So Thats it,just add my domain and put it my site on the index page only near the tittle ?Thanks ant
     
  6. antrvant

    antrvant Junior Member

    Joined:
    Jul 28, 2010
    Messages:
    198
    Likes Received:
    14
    Home Page:
    put it in .htaccess file on the root of your site where your index.php put
     
  7. georgegaskin

    georgegaskin Registered Member

    Joined:
    Nov 28, 2009
    Messages:
    99
    Likes Received:
    8
    Location:
    Long Branch NJ
    You know I just wrote a nice post and this happens all the time,I hit the back space to erase a letter and the post is gone.Point is this does not work on HTML on a godaddy windows host.Thanks (pised off)
     
  8. chockomonkey

    chockomonkey Regular Member

    Joined:
    Mar 27, 2009
    Messages:
    366
    Likes Received:
    40
    Location:
    the States
    i fuckin hate that shit, so much time gone in an instant.
     
  9. crepito

    crepito Junior Member

    Joined:
    Oct 5, 2008
    Messages:
    145
    Likes Received:
    28
    Location:
    Portugal
    You can check if the redirection is working properly by using this website

    Code:
    hxxp://www.stepforth.com/resources/server-header-checker-tool/
    This is all great but i was having a little problem. After doing the redirection automatically, using hostgator redirection tool (does basically the same code antrvant provided), instead of redirecting www .blablabla.c0m to hxxp://blablabla.c0m it was redirecting to hxxp://blablabla.c0m/wp-content/w3tc/pgcache/_default_.html.gzip .

    To fix this issue, add the redirection code on top of .htaccess, before the W3 Cache.

    Hope this helps someone that runs into this issue.
     
    Last edited: Aug 26, 2010