The simpler media website CMS
not sure so I prefer discuss on forum before create a ticket.
with sitemap-extended, I have this xml file /cache_html/sitemap/sitemap-zenphoto-index.xml
.
In this file I can see the following code:
<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <url> <loc>http://www.vincentbourganel.fr</loc> <lastmod>2017-10-17T09:46:16Z</lastmod> <changefreq>weekly</changefreq> <priority>0.9</priority> </url> <url> <loc>http://www.vincentbourganel.fr/page/2</loc> <lastmod>2017-10-17T09:46:16Z</lastmod> <changefreq>weekly</changefreq> <priority>0.9</priority> </url> <url> <loc>http://www.vincentbourganel.fr/page/3</loc> <lastmod>2017-10-17T09:46:16Z</lastmod> <changefreq>weekly</changefreq> <priority>0.9</priority> </url> </urlset>
Comments
without rewrite token on gallery (this is my case on my prod site), I should have something like following:
and of course, it should take into account the rewrited token for gallery page.
Since you have to manually set the page you want to use as the gallery index you can just enter the rewritten page name on the option.
It does not support the rewrite token because you can use any other page (you need to make sure naturally that it makes sense ;-)) as well but those will not have any gallery token support.
I did a mistake in my previous post. the file should be like following
as we can have separted pages for index et gallery pages.
Sorry, I don't understand. According to you, where I have to enter the rewritten page name?
There is non option like that in sitemap-extended plugin.
You have to do it in two places: The actual rewrite token on the rewriteToken plugin options and the option of the sitemap plugin so it know which is the gallery page to use.
So if youe rewrite token is "galerie" instead of actual page name "gallery" enter it in both options for now.
This naturally ony works if using modrewrite urls and it will be alwas
/page/<yourname>
. But seriously who nowadays would use non modrewrite links…I might take a look later to support the default gallery index "gallery" internally.
OK.
Btw, it will be more consitant if sitemap-extended uses the theme option
custom_index_page
('gallery' in my case).so we don't have to do nothing in sitemap-extended options.
Yes, might be that the plugin is older than this option, don't remember. I will put it on my list.
I have a test by adding 'gallery' in
Gallery index page
option of sitemap-extended, but nothing append in/cache_html/sitemap/sitemap-zenphoto-index.xml
: the xml stays as the code above and I don't have any 'gallery' anywhere in sitemap xml files.to finish, in the same way, the paginated items (news, cattegories, gallery and albums) are like that:
as rewrited like are with a
/
at the endI don't know if it is correct or not.
Yes, they should. Actually both will work and should be redirected by htaccess.
Fix is up, please try as I also did some internal restucturing (does not change functionality, just for better internal organization).
It seems to be fixed.
as usual, thanks :-)