Sitemap-extended problem with index

Hi
I use the module sitemap-extended its creates the file:
mysite.com/cache_html/sitemap/sitemap-zenphoto-index.xml
what is listed in this file doesn't exist:

../page/index.php
../page/index.php/2
../page/index.php/3
etc.

The index page of my gallery is index.php and there is no folder "page"

I suppose i should only have
/index.php

what can i do to solve this problem?

Thanks

Pat

Comments

  • acrylian Administrator, Developer
    The sitemap covers the "standard theme structure". Which means the index page contains the the toplevel albums which is paginated. To those pages the `page` refers. Same as within an album.

    If a theme/site does not use this structure but a custom one the sitemap does not and cannot know about that.

    The simplest way sadly would be to manually edit the sitemap files to remove the unneeded ones. OR create a custom sitemap plugin matching the structure of your theme/site.
  • what would be the part to delete so it no longer generates the file :
    sitemap-zenphoto-index.xml

    ?

    Thanks
  • acrylian Administrator, Developer
    Sorry, I don't know that offhand. Look at the plugin, the code is documented.As said easiest is you edit the xml files for now.

    Edit: Btw, as I don't always know everything offhand myself: On the plugin options you can override the index page by setting the gallery index your theme/site uses.
  • yes I understand, the problem is that this plugin comes with zenphoto and generates an error in Google webmaster tools when the sitemap is submitted because of those non existing generated urls.....
    I think creating links to a folder named "page" should be an option not something the user has to manually modify in the script.
  • acrylian Administrator, Developer
    Sorry, I answered quickly inbetween yesterday so I somehow missed the detail. `yourdomain.com/page/index.php/1` is indeed not a correct url.

    Correct urls for the index pages would be:
    `yourdomain.com/page/1` (modrewrite url)
    `yourdomain.com/index.php?page=2` (non modrewrite url)

    I just tested and the sitemap generates the correct urls for me. So the question is what is different on your site.
  • I found out what was creating the problem.

    In the sitemap configuration i had "index.php" for the gallery homepage instead of leaving the field empty.

    I have the admin in french and the translation is not right as it says "if this field is empty the index sitemap WON'T be generated."

    while in fact this field should be left empty if the gallery home page is index.php...
Sign In or Register to comment.