Announcement

#1 2011-06-27 16:13:18

navjotjsingh
Member
India
2010-09-23
11

Canonical Url

A single page on Piwigo gallery can be accessed via multiple urls depending on from where its accessed. There should be an option of inbuilt generation of canonical url for each page to prevent duplicacy. Hoping the future versions of Piwigo will include a canonical url tag as well.

Offline

 

#2 2011-06-27 16:21:14

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Canonical Url

Hi navjotjsingh,

Yes you're right : http://piwigo.org/demo/picture.php?/40/tags/25-dances and http://piwigo.org/demo/picture.php?/40/category/Asia is the same photo, but either in an album or with a tag. If I remember correctly, search engines robots should not go to browse by tag pages, to avoid duplicate content.

A canonical URL would be a good thing!

Offline

 

#3 2011-06-27 16:23:49

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Canonical Url

Offline

 

#4 2011-06-27 16:35:13

navjotjsingh
Member
India
2010-09-23
11

Re: Canonical Url

Awesome. That was the fastest response and bug submission. :D

Offline

 

#5 2012-01-31 09:43:41

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Re: Canonical Url

Is there a workaround until this is included in Piwigo?

Offline

 

#6 2012-02-06 10:05:15

alexpreyer
Member
Hammelburg (Ger)
2009-11-27
179

Re: Canonical Url

Is there really no workaround?

Offline

 

#7 2012-02-06 18:22:00

flop25
Piwigo Team
2006-07-06
7037

Re: Canonical Url

alexpreyer wrote:

Is there really no workaround?

no that's still in our Todo (well in fact the one of plg)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2012-02-07 22:11:56

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Canonical Url

rvelices has added a canonical URL for picture.php in [Subversion] r13048 (see [Bugtracker] ticket 2368)

So what about the album page? is there such a problem also as navjotjsingh says in the bugtracker? How can we have multiple URL on the same album?

Offline

 

#9 2012-02-07 22:34:33

flop25
Piwigo Team
2006-07-06
7037

Re: Canonical Url

plg wrote:

rvelices has added a canonical URL for picture.php in [Subversion] r13048 (see [Bugtracker] ticket 2368)

So what about the album page? is there such a problem also as navjotjsingh says in the bugtracker? How can we have multiple URL on the same album?

there might be the permalink also,
index/category/4
index.php?/category/4
index.php/category/4
if $conf['question_mark_in_urls'] = false and whatever $conf['php_extension_in_urls'] is

Last edited by flop25 (2012-02-07 22:39:25)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#10 2012-02-08 22:27:56

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Canonical Url

in [Subversion] r13062 I have added the canonical URL for index.php, but it's not perfect for the home page and for additional pages.

Offline

 

#11 2012-02-09 08:50:36

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Canonical Url

plg wrote:

in [Subversion] r13062 I have added the canonical URL for index.php, but it's not perfect for the home page and for additional pages.

I'm not sure it is useful because it does not reduce the number of urls ... But we can leave it like that

Offline

 

#12 2016-08-16 07:06:02

SwissSax
Member
2014-03-24
4

Re: Canonical Url

Is there a way to set
picture.php/123-XY/category/81.XY as canonical adress instead of picture.php/123-XY ?
That would help for search results landing in the right category and not in the middle of hunderts of different pictures
Greetings

Offline

 

#13 2016-08-18 15:48:30

WuppiGER
Member
Germany
2016-05-31
38

Re: Canonical Url

not a good idea ...

Picture 123 in category 1, 3 and 11
=> URL: picture.php/123-XY/category/1
=> URL: picture.php/123-XY/category/3
=> URL: picture.php/123-XY/category/11
=> 3 URLs for the same Picture, same Content => Duplicate Content ==>>> BAD
=> the only one Canonical-URL: picture.php/123-XY

Offline

 

#14 2016-08-21 12:46:39

SwissSax
Member
2014-03-24
4

Re: Canonical Url

Duplicate Content is indeed bad, but is there no way to set the first category that appears as canonical-url?

To use your example:
Picture 123 in category 1, 3 and 11
=> URL: picture.php/123-XY/category/1 => set as canonical
=> URL: picture.php/123-XY/category/3
=> URL: picture.php/123-XY/category/11
=> URL: picture.php/123-XY

Plus I do have only a few pictures that are in multiple categories. I'm even willing to use only 1 category per image if this is what it takes.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact