phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Problem with the pagination
Goto page 1, 2  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
::  
Author Message
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Wed Jan 09, 2008 10:49 am    Post subject: Problem with the pagination

Hi, I hope this is my last post regarding pagination Laughing .

Please, check out this link: http://forum.seochat.sk/seo-optimalizacia-pre-vyhladavace/page25/

It is the pagination of topics, the post pagination works fine. Also I checked the htaccess and I have it updated.

Could you give me a hint where the problem may be?

Thanks.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Problem with the paginationPosted: Wed Jan 09, 2008 1:55 pm    Post subject: Re: Problem with the pagination

Interesting URL standard.

Anyway, I think this is coming from the .htaccess, could you post it here ?

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Wed Jan 09, 2008 2:26 pm    Post subject: Re: Problem with the pagination

Here it is:

Code:
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# GROUPS SIMPLE
RewriteRule ^group([0-9]+)/?(page([0-9]+)/)?$ /memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)/)?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)/?(page([0-9]+)/)?$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)/?(page([0-9]+)/)?$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)/?(page([0-9]+)/)?$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)/$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^messages([0-9]+)/?(page([0-9]+)/)?$ /search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)/$ /viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team/$ /memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)/)?$ /viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


btw, thank you for your patience with my pagination issues Wink.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3472

Problem with the paginationPosted: Wed Jan 09, 2008 2:28 pm    Post subject: Re: Problem with the pagination

Looks like a small bug in the .htaccess generator, will fix.

Replace :

Code:
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)/)?$ /viewforum.php?start=$2 [QSA,L,NC]


With :
Code:

RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)/)?$ /viewforum.php?start=$3 [QSA,L,NC]


And it should be ok.

++

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Wed Jan 09, 2008 3:19 pm    Post subject: Re: Problem with the pagination

SeO wrote:
Looks like a small bug in the .htaccess generator, will fix.

Replace :

Code:
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)/)?$ /viewforum.php?start=$2 [QSA,L,NC]


With :
Code:

RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)/)?$ /viewforum.php?start=$3 [QSA,L,NC]


And it should be ok.

++


Done it, but nothing changed... Anything else?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Problem with the paginationPosted: Sun Jan 13, 2008 4:07 pm    Post subject: Re: Problem with the pagination

oups, the .htaccess generator was not wrong.

Code:
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)/)?$ /viewforum.php?start=$2 [QSA,L,NC]


is correct.

What is the message is saying, is it a topic or a forum that does not exist ?

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Sun Jan 13, 2008 4:26 pm    Post subject: Re: Problem with the pagination

dcz wrote:
oups, the .htaccess generator was not wrong.

Code:
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)/)?$ /viewforum.php?start=$2 [QSA,L,NC]


is correct.

What is the message is saying, is it a topic or a forum that does not exist ?


I says:
Quote:
The chosen forum does not exist.
Back to top
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Thu Jan 17, 2008 1:36 pm    Post subject: Re: Problem with the pagination

I am sorry for posting here again, I am just not sure whether you saw my post before. The page says: "The chosen forum does not exist."

Even if you don't know what exactly the problem is, could you let me know what should I look at, what should I try out? Thanks.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Problem with the paginationPosted: Fri Jan 18, 2008 11:37 am    Post subject: Re: Problem with the pagination

All right got it.

If because the slash suffix on pagination term will trick the function that gets the forum id.

Try replacing :

Code:
      if (preg_match('`^[a-z0-9_-]+/(' . $this->seo_static['pagination'] . '([0-9]+)\\' . $this->seo_ext['pagination'] . ')?$`i', $path, $matches)) {


with :

Code:
      if (preg_match('`^[a-z0-9_-]+/(' . $this->seo_static['pagination'] . '([0-9]+)' . $this->seo_ext['pagination'] . ')?$`i', $path, $matches)) {


Should be a temporary fix for this set up, be careful, it won't work if you start using pagexx.html instead of pagexx/

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Fri Jan 18, 2008 12:16 pm    Post subject: Re: Problem with the pagination

Confused Rolling Eyes Sad I made the change in phpbb_seo_class.php, but it's not working either...


dcz wrote:
All right got it.

If because the slash suffix on pagination term will trick the function that gets the forum id.

Try replacing :

Code:
      if (preg_match('`^[a-z0-9_-]+/(' . $this->seo_static['pagination'] . '([0-9]+)\\' . $this->seo_ext['pagination'] . ')?$`i', $path, $matches)) {


with :

Code:
      if (preg_match('`^[a-z0-9_-]+/(' . $this->seo_static['pagination'] . '([0-9]+)' . $this->seo_ext['pagination'] . ')?$`i', $path, $matches)) {


Should be a temporary fix for this set up, be careful, it won't work if you start using pagexx.html instead of pagexx/

++
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Problem with the paginationPosted: Fri Jan 18, 2008 2:55 pm    Post subject: Re: Problem with the pagination

mmm, try :

Code:
      if (preg_match('`^[a-z0-9_-]+/(page([0-9]+)/)?$`i', $path, $matches)) {


Or you could just keep the ".something" (.html for example) suffix for the pagination param, at least until we fix this fully.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Sat Jan 19, 2008 7:37 pm    Post subject: Re: Problem with the pagination

dcz wrote:
mmm, try :

Code:
      if (preg_match('`^[a-z0-9_-]+/(page([0-9]+)/)?$`i', $path, $matches)) {


Or you could just keep the ".something" (.html for example) suffix for the pagination param, at least until we fix this fully.

++


It's not working... Sad

Could you have a look at the phpbb_seo_class.php?

[mod] We knwo the code thanks Wink[/mod]
Back to top
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Sat Jan 26, 2008 8:59 pm    Post subject: Re: Problem with the pagination

dcz wrote:

Or you could just keep the ".something" (.html for example) suffix for the pagination param, at least until we fix this fully.

++


I tried that but it gave me 404 page... Till you fix this problem I guess I will let all the topics on one page without pagination, but it looks really stupid.

Anyway, please, let me know if you fix this.

Thanks.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Problem with the paginationPosted: Sun Jan 27, 2008 9:58 am    Post subject: Re: Problem with the pagination

doing so, you need to generate a new .htaccess, there would be no real need for redirection in such case, since the other links never worked so far.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
tybi



Joined: 04 Nov 2007
Posts: 28

Problem with the paginationPosted: Sat Mar 08, 2008 11:53 am    Post subject: Re: Problem with the pagination

Any improvement in this pagination issue?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
Page 1 of 2 Goto page 1, 2  Next

Navigation Similar Topics

Jump to: