Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2012-05-10 14:04:19

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

[RV Sitemap] compatibility with multiple site

Hi rvelices,

Would it be possible to make [extension by rvelices] RV Sitemap compatible with multisite feature?


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#2 2012-05-10 16:47:53

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1554
Website

Re: [RV Sitemap] compatibility with multiple site

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

#3 2013-05-14 10:35:11

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

Re: [RV Sitemap] compatibility with multiple site

(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.


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#4 2013-05-14 12:24:25

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1554
Website

Re: [RV Sitemap] compatibility with multiple site

ok. what config variable should I test for multisite ? (In this case I will force generation in data_dir)

Offline

#5 2013-05-14 12:51:43

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

Re: [RV Sitemap] compatibility with multiple site

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?


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#6 2013-05-14 13:40:29

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1554
Website

Re: [RV Sitemap] compatibility with multiple site

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

#7 2013-05-14 14:19:14

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

Re: [RV Sitemap] compatibility with multiple site

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?


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#8 2013-05-14 14:19:42

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

Re: [RV Sitemap] compatibility with multiple site

(there is no variable saying "multisite activated")


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#9 2013-05-14 15:12:51

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1554
Website

Re: [RV Sitemap] compatibility with multiple site

plg wrote:

Do you suppose that webmaster declare their sitemap on Google Webmaster Tools? or use a robot.txt?

The first one ...

Offline

#10 2013-05-14 15:15:45

rvelices
Piwigo Team
Registered: 2005-12-29
Posts: 1554
Website

Re: [RV Sitemap] compatibility with multiple site

Offline

#11 2013-05-14 15:24:32

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

Re: [RV Sitemap] compatibility with multiple site

actually I thought you were using robots.txt. Maybe the user should be told that she has to submit her sitemap to search engines.


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013