URL-rewrite and "click for image" (jpg.html)

Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Mon, 2008-10-13 19:39

I try to explain what I mean.

There is a tool which creates code for a single photo to link it.

The result is like

<a href="http://www.domain.tld/v/album_dir/title.jpg.html">click for image</a>

After you leave the image, the url is like

http://www.domain.tld/v/album_dir/?g2_showId=9999

This is not search engines friendly, because you are punished for double content.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2008-10-13 22:27

What version of Gallery as that doesn't look right for the current version, though it might have to do with your theme too. Personally, I'd modify, as I already have, my theme (photo.tpl) so any links to other resized versions, including original sized versions, use a rel="nofollow" tag. http://www.google.com/search?q=rel+nofollow

No double content.

Google was picking up duplicate content for one of my galleries because of the resized versions. I made that change, the next time or two after googlebot crawled my site and the content was gone.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Tue, 2008-10-14 11:42

Thanks for rel="nofollow">

I use the hybrid-theme.

Gallery-Version = 2.2.5 Kern 1.2.0.7
PHP-Version = 5.2.5 apache
Webserver = Apache/1.3.41 (Unix) PHP/5.2.5 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Datenbank = mysqli 4.1.22-standard, lock.system=database
Werkzeuge = ArchiveUpload, Exif, ImageMagick, LinkItemToolkit, Thumbnail, Gd
Beschleunigung = none, none
Betriebssystem = Linux 2.6.9-55.0.12.ELsmp #1 SMP Fri Nov 2 11:19:08 EDT 2007 i686
Standard-Motiv = hybrid
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.3) Gecko/2008092700 SUSE/3.0.3-2.2 Firefox/3.0.3
Zeilen in der GalleryAccessMap Tabelle = 8
Zeilen in der GalleryAccessSubscriberMap Tabelle = 2192
Zeilen in der GalleryUser Tabelle = 3
Zeilen in der GalleryItem Tabelle = 2190
Zeilen in der GalleryAlbumItem Tabelle = 95
Zeilen in der GalleryCacheMap Tabelle = 0

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2008-10-14 15:42

Do you need more help with this or is this "solved"?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Tue, 2008-10-14 16:21

Thanks a lot for asking.

The optimum would be a module like http://drupal.org/project/globalredirect for drupal.

Your solution belongs to themes, and therefore I asked there: http://gallery.menalto.com/node/82475

I am not sure, which template of the hybrid theme I have to change. Of course I don't want to exclude search engines completely. Please answer re themes in the other thread.

Maybe I should post a feature request. Google webmaster told me, that I have URL's with too much redirects. The idea of the drupal theme I think is very interesting. With tags and keywords there is always the problem with double content.