Right now I have my robots.txt restricting access to my gallery (which is in /photos off of the home page directory). My images are highly indexed by search engines and before I release them onto it, I want to figure out how to only have 1 index per image. Likewise I only want 1 index per album. For example, for the image:
domain/photos/picture/20120520_194631860/category/isla_carmen_bcs_mexico
Ideally I only want it indexed by:
domain/photos/picture/20120520_194631860 (Note I'd accept the above URL)
and the album indexed by:
domain/photos/index/category/isla_carmen_bcs_mexico
The problem is that these images/albums can be indexed via slideshows, favorites, tags, most visited, various sized images, etc. Does anyone have any suggestions on how to limit this and/or what all of the URL options that I need to restrict are?
-- Geoff
Last edited by geoffschultz (2012-07-25 15:44:05)
Offline
hello,
this is useless, because Piwigo use the "canonical" meta tag (header.tpl line 43)
if Search Engines are well coded (I assume they are !) they use this canonical url instead of page url when available
Offline
I'm using Stripped and I see no <link rel="canonical"> tags in my generated HTML, or are you relying on the search engines to normalize the URL?
As far as line 43 in header.tpl, this is what I see starting at line 42
{if isset($U_PREFETCH) }<link rel="prefetch" href="{$U_PREFETCH}">{/if} {if not empty($page_refresh) }<meta http-equiv="refresh" content="{$page_refresh.TIME};url={$page_refresh.U_REFRESH}">{/if} {get_combined_scripts load='header'}
What am I looking for?
-- Geoff
Last edited by geoffschultz (2012-07-25 18:56:13)
Offline
Ah, I just looked at the "default" template and see
{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}
Why doesn't stripped use this?
-- Geoff
Offline
I notified the author
Offline
I don't know what conical is... And when was this introduced in the templates.
Offline
mistic100 wrote:
I notified the author
Thanks!
I inserted
{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}
into the stripped header and it does exactly what I was asking for.
-- Geoff
Offline
Zaphod wrote:
I don't know what conical is... And when was this introduced in the templates.
Offline
I have the same problem with stripped theme. I have to insert
{if isset($U_CANONICAL)}<link rel="canonical" href="{$U_CANONICAL}">{/if}
after prefetch?
Thanks