EnglishHi rvelices,
Would it be possible to make [extension by rvelices] RV Sitemap compatible with multisite feature?
Offline
plg wrote:
Would it be possible to make [extension by rvelices] RV Sitemap compatible with multisite feature?
It's only about the location of the generated file. Right ?
Offline
(sorry for this huge delay on reply)
yes, the problem is that sitemap.xml is written at the root directory of Piwigo and it is shared among all galleries.
Offline
ok. what config variable should I test for multisite ? (In this case I will force generation in data_dir)
Offline
If you plan to use a data_dir, no need to check multiple site or not, juste use $conf['data_location']
The problem is that search engines will call http://domain.com/piwigo/sitemap.xml : how can you make it look at http://domain.com/piwigo/<_data>/sitemap.xml instead?
Offline
plg wrote:
If you plan to use a data_dir, no need to check multiple site or not, juste use $conf['data_location']
The problem is that search engines will call http://domain.com/piwigo/sitemap.xml : how can you make it look at http://domain.com/piwigo/<_data>/sitemap.xml instead?
Search engines will call what you tell them to call. I will not change default location that has been set so far unless multisite. I will just force data_dir if multisite. Today the filename can also be ../../sitemap.xml or anything else ...
Offline
But how do you tell Google that the sitemap is located on http://domain.com/sitemap.xml or http://domain.com/_data/site1/sitemap.xml ?
Do you suppose that webmaster declare their sitemap on Google Webmaster Tools? or use a robot.txt?
Offline
(there is no variable saying "multisite activated")
Offline
plg wrote:
Do you suppose that webmaster declare their sitemap on Google Webmaster Tools? or use a robot.txt?
The first one ...
Offline
Offline
actually I thought you were using robots.txt. Maybe the user should be told that she has to submit her sitemap to search engines.
Offline