Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-19 13:51:50

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Pagination problem

I was using ob1_pagination plugin, and everything was fine, until I wanted to changed the number of articles displayed per page from 10 to 20.

After that, I have pages like this indexed in Google:
www.site.com/blog?pg=297
www.site.com/blog?pg=298

Ofcourse, I dont have 298 blog pages, with 20 articles on each :) I have only 3 pages.

The code:

<txp:article form=“someform” limit=“20” />
<txp:ob1_pagination ulid=“pagination” liselected=“currentpage” previoustext=” Previous” nexttext=“Next” outputlastfirst=“0” />

I tried txp:newer and older, but I would like to have numbers of pages like ob1 has, not just next and previous links.

Any ideas what could be the problem, I do not want those ghost pages to appear in G index.

Last edited by AndrijaM (2010-01-19 17:46:38)

Offline

#2 2010-01-20 17:11:47

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 638
Website

Re: Pagination problem

Yea go and use a newer cool plugin: soo_page_numbers ;)

Offline

#3 2010-01-20 17:51:30

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Pagination problem

Thanks Gil. However, I am at a loss as to what is causing Andrija’s issue. Andrija, are you doing anything clever with URL rewrites that could possibly be related to this? Just a wild guess.


Code is topiary

Offline

#4 2010-01-20 22:04:37

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Pagination problem

@ Gil
thanks a lot, will try it out

@jsoo
well, I don’t, as far as I know :) But, could it be maybe related with some other plugin that I’m using, here is the list:
Active plugins: gaw_if_comment_preview-0.1, zem_contact_lang-4.0.3.6m, zem_contact_reborn-4.0.3.20, rss_suparchive-0.18, asy_wondertag-0.5, chh_article_custom-1.15, ob1_pagination-2.5, rss_live_search-0.7, gva_commentclass-0.1, rss_unlimited_categories-0.7.4, rss_admin_db_manager-4.3, rah_comment_spam-0.2, rah_textile_bar-0.4, chh_article_lib-1.04
theme_name: classic 4.2.0

Offline

#5 2010-01-21 02:02:49

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Pagination problem

OK, now I see the problem (if not the source of the problem). Your “next page” link always shows the next page, even if there is no next page. So Google keeps following the link, which generates yet another ghost page, and so on.


Code is topiary

Offline

#6 2010-01-21 11:25:48

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Pagination problem

Exactly! Is there anything I can do about it? And why is this started to happen when I changed the number of articles per page? I am sure that before that everything was fine.

Edit:
well actually this is not the case, take a look link this is tha last page in blog, and in the bottom you will see that there is no link to next page (Sledeća strana is next but it is not link)

Last edited by AndrijaM (2010-01-21 11:28:41)

Offline

#7 2010-01-21 12:22:40

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Pagination problem

Now it all makes sense. When you changed from 10 to 20 articles per page, you reduced the number of pages. But Google was still checking on pg=4, pg=5, and so on, because those existed previously. Those URLs still give you a valid page, and on those “ghost” pages the Sledeća strana points to yet another “ghost” page. I take it you are not using the older tag to generate that Sledeća strana link, because older checks that the page number is correct.


Code is topiary

Offline

#8 2010-01-21 15:20:25

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Pagination problem

Aha! You are right, that makes sense. But what could I do now about it, if this is the problem, I’m not sure that instaling this new plugin that Gil suggested will solve this?
No, I’m not using older tag, just ob1 plugin.

Edit: but, it’s not just Google, those pages actuly exist, the pages are opening, I can add any number at the end like pg=8627 and that page will open, it will not be like 404 eror page

Last edited by AndrijaM (2010-01-21 15:24:26)

Offline

#9 2010-01-21 16:02:08

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Pagination problem

I’d do two things:

  1. use older for the “Sledeća strana” link, so that ghost pages don’t generate links to more ghost pages
  2. add a redirect to your .htaccess to redirect ghost page requests back to the first page

First step might not be necessary if you take care of the second, but can’t hurt. The second step should be temporary until you get those ghost pages out of Google et al. I’m not very good at .htaccess or I’d give you an example.


Code is topiary

Offline

#10 2010-01-22 10:18:54

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Pagination problem

Thanks, I’m not sure how can I redirect all those pages, because there is unlimited number of them, without redirecting those which actualy exist.
Maybe the best solution will be to disable ob1 and use older and newer for some time, and then later on enable the plugin.

Offline

#11 2010-01-22 13:24:41

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Pagination problem

You can do pattern matching to catch all the ghost pages in a couple of rewrite rules. If I knew how I’d tell you.

I don’t think you need to disable the plugin completely, just don’t use it to generate the “Sledeća strana” link.


Code is topiary

Offline

#12 2010-01-24 18:20:03

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: Pagination problem

Thanks, I already swithed to older and newer, for now :) and used robots.txt to exclude those pages. Btw, my rankings in G droped couple of places in the last few days (which did not happened in over a year now, it’s for sure that its got something to do with this problem). Thats why I thought that it would be better to use robots.txt file and not .htaccess, because G can again think that I’m trying to manipulate in some way by redirecting all those pages to first page.

Offline

Board footer

Powered by FluxBB