i have large number of albums with paged navigation. All the pages has been crawled by Google and says that they are duplicate pages because of same title. fixing this issue i want set Canonical URL. how can i do that. please advise.
i have added description for album, but this album has several pages, all these pages has been displayed this description. i want hide this description from other pages (ie, 2,3,4..). how to do that?
Comments
Check the page number using `getCurrentPage()` to hide the description on further pages or add the page number to the page title.
Also Google indexed the following pages and says that duplicate.
http://gallery.southdreamz.com/bipasha-basu/
http://gallery.southdreamz.com/bipasha-basu
how to fix this case?
For the "duplicate" pages Zenphoto should generate album urls with a slash if you use the standard functions. You probably could use htaccess/modrewrite to add that always. Or why don't you use the link rel tag?
Btw, I assume you use the sitemap plugin as well?
`
RewriteCond %{REQUEST_URI} !\.(php|html?|jpg|gif)$
RewriteRule ^(.*)([^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301]
``
--
I' am not using built in ZenPhoto sitemap plugin, because of size. i just generated my own:
``
gallery.southdreamz.com/sitemap-index.xml
`
my code will not check private, password and generated from direct db query.
--
Using `getCurrentPage()`, i generated Canonical URL.
thanks for your help.
For your interesst: The html_meta_tags plugin in the TRUNK svn stream (1.4.2 beta - therefore in the nightlies) supports now the `` that Google introduced and several others support (Although not really "meta" but also in the page head that seemed fitting here). Currently it does not include the page number though and just creates the base url for an album for example. I will add that later.
A canonical page is the preferred version of a set of pages with highly similar content.
It's common for a site to have several pages listing the same set of products. For example, one page might display products sorted in alphabetical order, while other pages display the same products listed by price or by rating. For example:
http://www.example.com/product.php?item=swedish-fish&trackingid=1234567&sort=alpha&sessionid=5678asfasdfasfd
http://www.example.com/product.php?item=swedish-fish&trackingid=1234567&sort=price&sessionid=5678asfasdfasfd
If Google knows that these pages have the same content, we may index only one version for our search results. Our algorithms select the page we think best answers the user's query. Now, however, users can specify a canonical page to search engines by adding a <link> element with the attribute rel="canonical" to the <head> section of the non-canonical version of the page. Adding this link and attribute lets site owners identify sets of identical content and suggest to Google: "Of all these pages with identical content, this page is the most useful. Please prioritize it in search results."
How do I specify a canonical URL?
You can specify a canonical URL in two ways:
Add a rel="canonical" link to the <head> section of the non-canonical version of each HTML page.
To specify a canonical link to the page http://www.example.com/product.php?item=swedish-fish, create a <link> element as follows:
<link rel="canonical" href="http://www.example.com/product.php?item=swedish-fish"/>
Copy this link into the <head> section of all non-canonical versions of the page, such as http://www.example.com/product.php?item=swedish-fish&sort=price.
If you publish content on both http://www.example.com/product.php?item=swedish-fish and https://www.example.com/product.php?item=swedish-fish, you can specify the canonical version of the page. Create the <link> element:
<link rel="canonical" href="http://www.example.com/product.php?item=swedish-fish"/>
Add this link to the <head> section of https://www.example.com/product.php?item=swedish-fish.
Indicate the canonical version of a URL by responding with the Link rel="canonical" HTTP header. Adding rel="canonical" to the head section of a page is useful for HTML content, but it can't be used for PDFs and other file types indexed by Google Web Search. In these cases you can indicate a canonical URL by responding with the Link rel="canonical" HTTP header, like this (note that to use this option, you'll need to be able to configure your server):
Link: <http://www.example.com/downloads/white-paper.pdf>; rel="canonical"
Google currently supports these link header elements for Web Search only.
Is rel="canonical" a suggestion or a directive?
This new option lets site owners suggest the version of a page that Google should treat as canonical. Google will take this into account, in conjunction with other signals, when determining which URL sets contain identical content, and calculating the most relevant of these pages to display in search results.
Can the link be relative or absolute?
rel="canonical" can be used with relative or absolute links, but we recommend using absolute links to minimize potential confusion or difficulties. If your document specifies a base link, any relative links will be relative to that base link.
Must the content on a set of pages be similar to the content on the canonical version?
Yes. The rel="canonical" attribute should be used only to specify the preferred version of many pages with identical content (although minor differences, such as sort order, are okay).
For instance, if a site has a set of pages for the same model of dance shoe, each varying only by the color of the shoe pictured, it may make sense to set the page highlighting the most popular color as the canonical version so that Google may be more likely to show that page in search results. However, rel="canonical" would not be appropriate if that same site simply wanted a gel insole page to rank higher than the shoe page.
What happens if rel="canonical" points to a non-existent page? Or if more than one page in a set is specified as the canonical version?
We'll do our best to algorithmically determine an appropriate canonical page, just as we've done in the past.
Can Google follow a chain of rel="canonical" designations?
Yes, to some extent, but to ensure optimal canonicalization, we strongly recommend that you update links to point to a single canonical page.
Can rel="canonical" be used to suggest a canonical URL on a completely different domain?
There are situations where it's not easily possible to set up redirects. This could be the case when you need to migrate to a new domain name using a web server that cannot create server-side redirects. In this case, you can use the rel="canonical" link element to specify the exact URL of the domain preferred for indexing. While the rel="canonical" link element is seen as a hint and not an absolute directive, we do try to follow it where possible.
[url=http://www.infographicsposters.com/submit-infographics]submit infographics[/url]