1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

WWW and Non WWW Site

Discussion in 'Search Engine Optimization' started by jdeeze, Mar 15, 2007.

  1. #1
    jdeeze, Mar 15, 2007 IP
  2. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The 2 are see by search engines as differents sites, which is bad.

    I suggest you to set a 301 redirect in your .htaccess file, redirecting the one without www to the one with www (or the opposite), but choose one and stick with it
     
    Monty, Mar 15, 2007 IP
  3. oseymour

    oseymour Well-Known Member

    Messages:
    3,960
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    135
    #3
    yes there is.....they also end up with different pagerank....use your .htaccess file and redirect the non www version to the www version

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^seo-rant\.com [NC]
    RewriteRule ^(.*)$ http://www.seo-rant.com/$1 [L,R=301]

    of course you replace seo-rant.com with your domain name
     
    oseymour, Mar 15, 2007 IP
    WebGeek182 likes this.
  4. jdeeze

    jdeeze Peon

    Messages:
    256
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what is the htaccess file? I was looking for it the other day, kinna lost when it comes to this
     
    jdeeze, Mar 15, 2007 IP
  5. KingNomar

    KingNomar Well-Known Member

    Messages:
    1,825
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    155
    #5
    its just a txt file that you can call .htaccess
     
    KingNomar, Mar 15, 2007 IP
  6. jdeeze

    jdeeze Peon

    Messages:
    256
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Do i put this file in my root ?
     
    jdeeze, Mar 15, 2007 IP
  7. projectv3

    projectv3 Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    what if i have more than one domain on the same server?

    how do i do the same for the extra domains which are organized in their own folder, do i put it in each separate folder??

    RewriteCond %{HTTP_HOST} ^defaultdomain.com [NC]
    RewriteRule ^(.*)$ http://www.defaultdomain.com/$1 [L,R=301]

    works

    but

    RewriteCond %{HTTP_HOST} ^domain2.com [NC]
    RewriteRule ^(.*)$ http://www.domain2.com/$1 [L,R=301]

    doesnt :(
    i get an error along the lines of:
    cannot find xxx..domain2.com/domain2

    and the url is redirected to xxx.domain2.com/domain2 when i see this error

    (i had to change www to xxx cuz i'm new here so it wont let me post live urls
     
    projectv3, Mar 15, 2007 IP