301 redirect question, help needed

Discussion in 'Search Engine Optimization' started by andrenym00, Jul 25, 2009.

  1. #1
    When I go to google webmaster tools it keeps telling me that it cant find http://www.mysite.com/index.html. Strange thing is that I dont have index.html. It even says that it's linked from 100 pages when it's not.

    Question is should I do a 301 redirect such as:

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
    RewriteRule ^index\.html$ http://www.mysite.com/ [R=301,L]

    Or should I just leave it alone? Or maybe put a no follow in robots.txt?

    Also I am redirecting index.php and non www to www so here is my .htaccess file does it look ok?

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^mysite.com [nc]
    rewriterule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]

    RewriteCond %{THE_REQUEST} ^([^/]+/)*index\.php\ HTTP/
    RewriteCond %{THE_REQUEST} ^.*/index\.php
    RewriteRule ^(([^/]+/)*)index.php$ http://www.mysite.com/$1 [R=301,L]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
    RewriteRule ^index\.html$ http://www.mysite.com/ [R=301,L]
     
    andrenym00, Jul 25, 2009 IP
  2. HighRankingSEO

    HighRankingSEO Well-Known Member

    Messages:
    423
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Looks good. Definitely do a 301. It sounds like a canonicalization issue is all.
     
    HighRankingSEO, Jul 25, 2009 IP