| :: |
| Author |
Message |
tybi
Joined: 04 Nov 2007 Posts: 28
|
Posted: Wed Jan 09, 2008 10:49 am Post subject: Problem with the pagination |
|
|
Hi, I hope this is my last post regarding pagination .
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

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
tybi
Joined: 04 Nov 2007 Posts: 28
|
Posted: 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 . |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3472
|
Posted: 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
|
Posted: 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

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
tybi
Joined: 04 Nov 2007 Posts: 28
|
Posted: 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
|
Posted: 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

Joined: 28 Apr 2006 Posts: 14131
|
Posted: 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 |
|
 |
tybi
Joined: 04 Nov 2007 Posts: 28
|
Posted: Fri Jan 18, 2008 12:16 pm Post subject: Re: Problem with the pagination |
|
|
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

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
tybi
Joined: 04 Nov 2007 Posts: 28
|
Posted: 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...
Could you have a look at the phpbb_seo_class.php?
[mod] We knwo the code thanks [/mod] |
|
|
| Back to top |
|
 |
tybi
Joined: 04 Nov 2007 Posts: 28
|
Posted: 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

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
tybi
Joined: 04 Nov 2007 Posts: 28
|
Posted: Sat Mar 08, 2008 11:53 am Post subject: Re: Problem with the pagination |
|
|
| Any improvement in this pagination issue? |
|
|
| Back to top |
|
 |
|
|