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.

403 errors in Webmaster Tools

Discussion in 'Google Sitemaps' started by AbdullahFarouk, Dec 13, 2006.

  1. #1
    I keep seeing these 403 errors in Google's Webmaster Tools (formerly G Sitemaps). Like 99.9% of other sites out there, mine blocks the display of directories with no index.php file. Like this site for example :)
    But the directories' page contents are still crawlable and viewable to any visitor, browser or bot like any other site. The only thing that they cannot see is a list of all the files in the directory, just like most other sites.

    But I keep getting 403 errors for every directory on my site, although there is nothing out of the ordinary in my htaccess or robots.txt -- is this a Google bug? Are some of you also seeing this from time to time too?
     
    AbdullahFarouk, Dec 13, 2006 IP
  2. websitetools

    websitetools Well-Known Member

    Messages:
    1,463
    Likes Received:
    24
    Best Answers:
    4
    Trophy Points:
    110
    #2
    websitetools, Dec 13, 2006 IP
  3. AbdullahFarouk

    AbdullahFarouk Peon

    Messages:
    96
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't have any internal links to http://example.com/mydirectory/ on my site. But there could be someone linking to my site using such a link, and that could likely be the cause of the errors.

    Another funny thing, is that I see several dozen links "Not found" errors for files that have not existed on my site for three years! I been scratching my head over this one too. Maybe both of these have the common cause of some site somewhere linking to this files/directories.
     
    AbdullahFarouk, Dec 13, 2006 IP
  4. Pierre Monteux

    Pierre Monteux Peon

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would recamend using .htaccess to 301 redirect the old files to your home page and (if you have php) creating index.php files in all your directories with the code

    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header('Location: http://example.com');
    ?>
    Code (markup):
    That should keep google happy.
     
    Pierre Monteux, Dec 13, 2006 IP