getting an HTTP 403 error with sitemap

Discussion in 'SEO, Traffic and Revenue' started by Soliloquy, Jun 13, 2009.

  1. Soliloquy

    Soliloquy Regular Member

    2,402
    66
    494
    I was just looking through my Google Webmaster tools and discovered that though my sitemaps have been downloaded the status shows the following error:

    General HTTP error: HTTP 403 error (Forbidden)
    We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

    The sitemap was generated by vbseo sitemap generator successfully every night, it's in the right place... what could be wrong here?
     
  2. Soliloquy

    Soliloquy Regular Member

    2,402
    66
    494
    Can I bump this? I'm still having this problem. My sitemap is being generated, it's in the right place, my .htaccess file is correct, but visiting the sitemap URL gives me this error message, which I think is from vbseo sitemap:
     
  3. Lynne

    Lynne Regular Member

    333
    32
    164
    What are the permissions on the file? I think it needs to be set to at least 666?
     
  4. Soliloquy

    Soliloquy Regular Member

    2,402
    66
    494
    Permissions are set to 666.
     
  5. Lynne

    Lynne Regular Member

    333
    32
    164
    Check your error_logs and see if anything is there.
     
  6. Soliloquy

    Soliloquy Regular Member

    2,402
    66
    494
    Only thing in the error log is about robots.txt

    [Fri Jun 19 15:47:35 2009] [error] [client 66.249.71.57] File does not exist: /***/***/public_html/robots.txt
     
  7. Lynne

    Lynne Regular Member

    333
    32
    164
    (Argh! No deleting!!!!)



    Could it be your directory for your sitemap doesn't have the correct permissions? Can you go straight to your sitemap via a url?
     
  8. Soliloquy

    Soliloquy Regular Member

    2,402
    66
    494
    When I try to access it by the real URL I get the 403 "You don't have permission to access /vbseo_sitemap/data/sitemap_index.xml.gz on this server." message

    ah, this time the error log says

    [Fri Jun 19 16:49:45 2009] [error] [client 69.22.203.13] client denied by server configuration: /***/***/public_html/vbseo_sitemap/data/sitemap_index.xml.gz
     
  9. kev

    kev Regular Member

    1,224
    61
    434
    check the htaaccess file, there needs to be a redirect in there.

    RewriteEngine On
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    If your forum is in the html root, take the forum/ off the path.
     
  10. Soliloquy

    Soliloquy Regular Member

    2,402
    66
    494
    Here's my .htaccess:

    The forum is in the root directory.
     
  11. KW802

    KW802 Regular Member

    163
    102
    418
    If you're getting a 403 error then check your permissions like Lynne mentioned. What is the folder CHMOD to?
     
  12. kev

    kev Regular Member

    1,224
    61
    434
    The actual sitemap files have to writeable - that way the script can update them.

    Did you make the first files and upload them to the sitemap folder?
     
  13. Lynne

    Lynne Regular Member

    333
    32
    164
    Unzip the file. I don't think you should have a gzipped file there - sitemap_index.xml.gz . If you unzip it, you should end up with /sitemap_index.xml and that is the extension you want.
     
  14. Soliloquy

    Soliloquy Regular Member

    2,402
    66
    494
    Turned out the /data folder was chmodded wrong. Google can read it now, thanks everyone :)
     
  15. Nick

    Nick Regular Member

    7,441
    218
    458
    And for the record, it is indeed supposed to be gzipped (having the .gz extension). ;)
     
  16. Soliloquy

    Soliloquy Regular Member

    2,402
    66
    494
    Yes, it is indeed working with the .gz extension as created by vbseo sitemap generator :)
     
  17. Lynne

    Lynne Regular Member

    333
    32
    164
    Seems kinda strange, but then I don't use a sitemap. But, now I know. Thanks.
     
  18. Nick

    Nick Regular Member

    7,441
    218
    458
    It's because there is a 10MB Sitemap filesize limit.

    From Google Help documentation that is no longer available:
    From: [ame="http://www.scribd.com/doc/4557420/Handling-Google-Sitemaps-20pp"]Handling Google Sitemaps, 20pp@@AMEPARAM@@/docinfo/4557420?access_key=key-22em2g8xpdrocxdv9qc6@@AMEPARAM@@4557420@@AMEPARAM@@key-22em2g8xpdrocxdv9qc6[/ame]
     

Share This Page