Welcome to Geeklog, Anonymous Monday, June 27 2022 @ 11:24 am EDT

Geeklog Forums

problem with titles of index.php


Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Location:Ukraine, Kyiv
Hi! Please help me how to change titles of /index.php?page=2,3,4...999 ?
now it is duplicate the title of index.php and titles of topics
and I have problems with search engines

thanks!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Two questions: Is it really such a big problem (and how do you know)? And what do you suggest we put in the title instead?

I was actually wondering whether it would make sense to inject a "noindex" meta tag into all index pages with a page number > 1. If anything, those pages only seem to clog up the results for your site and usually, by the time a visitor arrives, the page doesn't contain the article the visitor was looking for any more.

bye, Dirk
 Quote

Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Location:Ukraine, Kyiv
google for example recomended avoid duplicate titles
another example: I have a topic named "Euro-2012"
for keyword "euro-2012" google displayed page "/index.php?topic=euro-2012&page=5
but must be "index.php?topic=euro-2012"

I propose to put in titles "Topic name - Number of page" if it possible

Quote by: Dirk

Two questions: Is it really such a big problem (and how do you know)? And what do you suggest we put in the title instead?

I was actually wondering whether it would make sense to inject a "noindex" meta tag into all index pages with a page number > 1. If anything, those pages only seem to clog up the results for your site and usually, by the time a visitor arrives, the page doesn't contain the article the visitor was looking for any more.

bye, Dirk

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yes, I've seen the recommendations in the Webmaster Tools. The question is: Is there any evidence that those duplicate titles are a real problem?

I mean sure, we could easily put the page number in the title in any case. But the real issue here may be something else:

Quote by: Pushkar

another example: I have a topic named "Euro-2012"
for keyword "euro-2012" google displayed page "/index.php?topic=euro-2012&page=5
but must be "index.php?topic=euro-2012"


This is exactly what I was talking about above. Wouldn't it make more sense to add a
Text Formatted Code
<meta name="robots" content="noindex">

for page 5 here? In theory, that should remove the page from the search results but the Googlebot would still follow the links on that page and find all the linked articles (and index those).

bye, Dirk
 Quote

Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Location:Ukraine, Kyiv
Maybe it is make more sense, but I have 25000 articles, and I need add 2500 codes

Can you tell me what I need to add or change that 2,3,4,5...999 pages displayed like "Topic name - Number of page"


This is exactly what I was talking about above. Wouldn't it make more sense to add a
Text Formatted Code
<meta name="robots" content="noindex">

for page 5 here? In theory, that should remove the page from the search results but the Googlebot would still follow the links on that page and find all the linked articles (and index those).

bye, Dirk[/p]
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: Pushkar

Can you tell me what I need to add or change that 2,3,4,5...999 pages displayed like "Topic name - Number of page"


For the topic pages only: Find this piece of code in function COM_siteHeader in lib-common.php:
Text Formatted Code
        else
        {
            $pagetitle = stripslashes( DB_getItem( $_TABLES['topics'], 'topic',
                                                   "tid = '$topic'" ));
        }

and change it to read:
Text Formatted Code
        else
        {
            global $page;

            $pagetitle = stripslashes( DB_getItem( $_TABLES['topics'], 'topic',
                                                   "tid = '$topic'" ));
            if (isset($page) && ($page > 1)) {
                $pagetitle .= ' - Page ' . $page;
            }
        }

bye, Dirk
 Quote

Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Location:Ukraine, Kyiv
:banana: :banana: :banana: :banana: :banana:
Big Grin thank you very much!!!!
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1442
Quote by: Dirk

Two questions: Is it really such a big problem (and how do you know)? And what do you suggest we put in the title instead?

I was actually wondering whether it would make sense to inject a "noindex" meta tag into all index pages with a page number > 1. If anything, those pages only seem to clog up the results for your site and usually, by the time a visitor arrives, the page doesn't contain the article the visitor was looking for any more.

bye, Dirk



From my experience and by doing some quick research by searching on Google for different stories I am pretty sure that this type of duplicate titles does not hurt a website (at least on Google). Most of the popular blog software out there doesn't display a page number in their page title for topics/categories. Should we do it? Not sure, I am not against the idea (for pages 2 and up) as it does give visitors additional information. I don't think it would be something I would apply to the meta tag description though (it is duplicated as well).

In regards to the the meta tag for noindex. I personally would still want these pages indexed. Maybe there should be a config option for this?


Tom
One of the Geeklog Core Developers.
 Quote

All times are EDT. The time is now 11:24 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content