zenphoto forums » General Zenphoto Discussion

HTTP 403 error Google Sitemaps

(5 posts)
  • Started 2 years ago by landscape-wildlife
  • Latest reply from landscape-wildlife
  1. landscape-wildlife

    Apprentice
    Joined: Feb '12
    Posts: 3

    Google sitemaps is reporting an error trying to access the Zenphoto sitemap /cache_html/sitemap/sitemapindex.xml

    403 errors are not exactly very helpful, I know. Any ideas? My sitemap is below:

    User-agent: *
    Sitemap: http://www.landscape-wildlife-photography.co.uk/cache_html/sitemap/sitemapindex.xml
    Disallow: /albums/
    Disallow: /cache/
    Disallow: /themes/
    Disallow: /zp-core/
    Disallow: /zp-data/
    Disallow: /page/search/
    Disallow: /uploaded/
    Disallow: /backup/

    Posted 2 years ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 15,123

    Well, 403 is helpful as it tells us this if you access the file directly:
    You don't have permission to access /cache_html/sitemap/sitemapindex.xml on this server.

    Which tells you to check your permissions of the file and folder...;-)

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  3. landscape-wildlife

    Apprentice
    Joined: Feb '12
    Posts: 3

    Thanks for your prompt reply! I'm not the most confident at dealing with Linux permissions. I took a look at these and this is how things are set:

    \cache_html: 755
    \sitemap: 744
    Should this be 755?
    sitemap-index.xml: 664

    Which (if any) should be altered?

    Posted 2 years ago #
  4. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 15,123

    It should be 644 files and 755 directories. See also:
    http://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  5. landscape-wildlife

    Apprentice
    Joined: Feb '12
    Posts: 3

    Thanks! Permissions changed and I can access the XML file.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.