Expired domain: now xxx.com indexed but not with www

Discussion in 'Search Engine Optimization' started by xc06, Dec 1, 2006.

  1. #1
    xc06, Dec 1, 2006 IP
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do some research into .htaccess and mod_rewrite to use a 301 redirect to www.

    This will redirect all URL's to the domain www and redirect the PR and indexing at some point.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.xxx\.com [NC]
    RewriteRule ^(.*) http://www.xxx.com/$1 [L,R=301]
    </IfModule>



    Good luck
     
    ServerUnion, Dec 1, 2006 IP
    1 person likes this.
  3. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ServerUnion's tip will 301 redirect all to the www. / version, which is good. "It" happened because the site had links coming to it with to http://xxx.com. No biggie, it's fairly common but it's a good idea to implement the above .htaccess.
     
    mdvaldosta, Dec 1, 2006 IP
    ServerUnion likes this.
  4. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Leave no stone unturned!
     
    ServerUnion, Dec 1, 2006 IP
  5. xc06

    xc06 Notable Member

    Messages:
    3,498
    Likes Received:
    332
    Best Answers:
    0
    Trophy Points:
    203
    #5
    ServerUnion, can I do alias domain cbgred.com to www.cbgred.com? Does it hurt?

    Thank you so much!
     
    xc06, Dec 1, 2006 IP
  6. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #6
    No, you need to do a 301 redirect. This can be done via .htaccess or via PHP in each page of the site. I would contact your webhosts about the issue.
     
    ServerUnion, Dec 4, 2006 IP
  7. xc06

    xc06 Notable Member

    Messages:
    3,498
    Likes Received:
    332
    Best Answers:
    0
    Trophy Points:
    203
    #7
    ServerUnion, as u told me, I inserted that code into .htaccess file and it works!
    now google already indexed my www.cbgred.com ! Wow...
     
    xc06, Dec 4, 2006 IP
    ServerUnion likes this.
  8. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I never get tired of hearing "I'm right"! hahaha
     
    ServerUnion, Dec 5, 2006 IP