Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
In google webmaster tools I found there is duplication of meta titles. Pagination page ?pg=2, 3 etc taking same titles. From SEO perspective this shouldn't be the case and every page should have unique meta titles. so is there a way to solve the problem?
You could do something like this I suppose:
Code: Select all
<meta name="title" content="Page Title<cms:if "<cms:gpc 'pg' method='get'/>"> - Page <cms:gpc 'pg' method='get'/></cms:if>">
This should prevent you from having duplicate meta titles.

Nevertheless I think the wisdom of allowing search engines to index pages other than your first is questionable from an SEO perspective. I therefore use this code:
Code: Select all
<cms:if "<cms:gpc 'pg' method='get'/>">
   <meta name="robots" content="noindex">
</cms:if>
I wonder, Cheesypoof, if you could expand a little on your comment
I think the wisdom of allowing search engines to index pages other than your first is questionable from an SEO perspective
I guess you mean the first page of a cloneable template?

Plus I am a bit flummoxed by the IF statement
Code: Select all
<cms:if "<cms:gpc 'pg' method='get'/>">
:?
You definitely would want your individual cloned pages to be indexed, as they have unique content. What I meant is in a paginated series, for example lets say you are listing your news articles on the home view. You have 15 total news articles, split across 3 pages:
http://website.com/news/
http://website.com/news/?pg=2
http://website.com/news/?pg=3

I think it really isn't beneficial in this case to allow page 2 and 3 to be indexed by a search engine. Ultimately it will split up your page ranking into numerous items, meaning the respective pages will rank lower. I can't think of a scenario where someone searching may desire to land on a page other than the first. In addition, if a visitor did so by accident it may create confusion. The reasoning makes sense to me, hopefully I am not missing something.

Let's say we visit: http://website.com/index.php?hello=potato
In Couch we can then use the following code to retrieve the query string value (potato) based on the query string name (hello):
Code: Select all
<cms:if "<cms:gpc 'hello' method='get'/>">
   <h1>Hello <cms:gpc 'hello' method='get'/>!</h1>
</cms:if>
... which outputs:
<h1>Hello potato!</h1>

Alternatively if we had visited: http://website.com/index.php
Nothing would have been output.

You can read more about HTTP request methods at https://developer.mozilla.org/en-US/docs/HTTP#HTTP_request_methods.
Thanks for the code cheesypoof
5 posts Page 1 of 1