![]() |
|
getGalleryIndexURL - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: getGalleryIndexURL (/thread-8785.html) |
getGalleryIndexURL - wdiggles - 2011-06-28 Album.php uses getGalleryIndexURL this way `` and the trailing / displays in the resulting links URL. The print_album_menu function uses getGalleryIndexURL this way That means links to the same pages can be seen as duplicate content, one link with the trailing / and one without that both go to the same page. How do I add a trailing / to the print_album_menu function? Thank you for any help Warren getGalleryIndexURL - acrylian - 2011-06-28 Modify the plugin. But I actually don't see the problem. It is the same link and usage ( getGalleryIndexURL - wdiggles - 2011-06-28 Link from listmenu: I ran a test using SEOMoz crawler and it shows that these two different links point to duplicate content, my research shows that google will consider it duplicate content as well. For example google sees these url variations as duplicate content even though they all end out on the same landing page: How do I add a trailing slash to this snippet in the plugin I tried "/" adding {echo "/"} ."/". a bunch of variations but could not get it to work. Thank you for your help getGalleryIndexURL - sbillard - 2011-06-28 This really seems a flaw in the tool you are using. All three of those representations are the same "link" with respect to internet standards. Not really much we can do about that since they will be found by whatever search engine happens to use that URL. You have not provided the full code, but I presume you should use: getGalleryIndexURL - reneesanguinetti - 2011-06-28 @wdiggles getGalleryIndexURL - wdiggles - 2011-06-29 @renee
getGalleryIndexURL - acrylian - 2011-06-29 I would suggest an easier solution without hacking any functions (I know SEO is specific but sometimes I think it is really exaggerated): Add a rewrite/redirection rule to your .htaccess file to remove that slash. getGalleryIndexURL - wdiggles - 2011-06-29 Thank you acrylian I agree that is the best option, this is the code I used which I put directly after this line in the zenphoto htaccess file: put no rules before this lineRewriteCond %{REQUEST_FILENAME} !-f Of course insert your site info into the http://www.domain.com/zenphoto/$1$2/ This post shows how to add the trailing slash to every url, you can also remove the trailing slash. Here is a link to the website I got the info from: http://blog.valtersboze.com/2009/06/add-or-remove-trailing-slash-in-url-with-htaccess/ getGalleryIndexURL - reneesanguinetti - 2011-06-30 @wdiggles getGalleryIndexURL - reneesanguinetti - 2011-12-21 Hello, getGalleryIndexURL - acrylian - 2011-12-21 Do you use the sitemap-extended plugin as well? I don't think it changed in 1.4.1.6 and I don't remeber if it does in 1.4.2. I don't remember how this theme creates the menu. Did you try a standard theme? In 1.4.2 RC1 the html_meta_tags plugin has now an option to place a getGalleryIndexURL - reneesanguinetti - 2011-12-21 Yes, I did try a standard theme with the Zenphoto version I am using (1.4.1.6). Same results. I will try RC1, but I'm not sure if it will be compatible with zpFocus_v1.4.1.4. Maybe the author will add to this topic. |