Englishrvelices wrote:
ok. what config variable should I test for multisite ? (In this case I will force generation in data_dir)
As I said earlier, in Piwigo 2.5 there is no variable saying "multiple site activated". But hoedlmoser made a good proposition with $conf['site_dir'], see topic:22173 and [wiki] Multiple site (multisite).
I think we should implement this configuration variable for Piwigo 2.6. Your opinion?
actually I thought you were using robots.txt. Maybe the user should be told that she has to submit her sitemap to search engines.
plg wrote:
Do you suppose that webmaster declare their sitemap on Google Webmaster Tools? or use a robot.txt?
The first one ...
(there is no variable saying "multisite activated")
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?
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 ...
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?
ok. what config variable should I test for multisite ? (In this case I will force generation in data_dir)
(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.
plg wrote:
Would it be possible to make extension:78 compatible with multisite feature?
It's only about the location of the generated file. Right ?
Hi rvelices,
Would it be possible to make extension:78 compatible with multisite feature?