Can't view secondary pages - redirects to the first

phpBB3 SEO Simple mod Rewrite support forum. This mods performs URL rewriting for phpBB3 in a static way.

Moderator: Moderators

Can't view secondary pages - redirects to the first

Postby Horizon70s » Wed Jan 28, 2009 6:54 pm

If I have a page using pagination with multiple pages of posts...and I click on 2, 3, etc....they all revert back to the first page. When I hover over the links they're showing properly....so I'm assuming I have something wrong with my .htaccess improperly redirecting.

The only time I've made any changes to the file is in regards to this post:

http://www.phpbb-seo.com/boards/zero-du ... html#23826
Horizon70s
 
Posts: 32
Joined: Wed Jan 21, 2009 4:06 pm

Advertisement

Postby SeO » Thu Jan 29, 2009 10:01 am

Please post your .htaccess here as well as a link t your forum in case it's online.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Horizon70s » Thu Jan 29, 2009 6:54 pm

coyotehuntingnation.com (test site)

.htaccess
Code: Select all
  # 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 lines
    # Options +FollowSymlinks
    # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
    # Options -MultiViews
    # 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
RewriteCond %{HTTP_HOST} ^coyotehuntingnation.com [NC]
RewriteRule ^(.*)$ http://www.coyotehuntingnation.com/$1 [L,R=301]
    #####################################################
    # PHPBB SEO REWRITE RULES - SIMPLE
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # 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 ^forum([0-9]+)(-([0-9]+))?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^forum([0-9]+)/topic([0-9]+)(-([0-9]+))?$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^announcestopic([0-9]+)(-([0-9]+))?$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^[a-z0-9_-]*/?topic([0-9]+)(-([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 ^member([0-9]+)-(topics|posts)(-([0-9]+))?$ /search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS SIMPLE
    RewriteRule ^group([0-9]+)(-([0-9]+))?$ /memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^post([0-9]+)$ /viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^active-topics(-([0-9]+))?$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^unanswered(-([0-9]+))?$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^newposts(-([0-9]+))?$ /search.php?search_id=newposts&start=$2&sr=topics [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

    # END PHPBB PAGES
    #####################################################
Last edited by Horizon70s on Sun Feb 08, 2009 5:11 pm, edited 1 time in total.
Horizon70s
 
Posts: 32
Joined: Wed Jan 21, 2009 4:06 pm

Postby SeO » Sun Feb 01, 2009 8:31 am

Ho I see, you tried to use no suffixes at all, and it just cannot work like this.

It as well seems that you are not running the latest phpbb_seo_class.php code.

So, you should at least use '/' as suffixes, won't be a problem to move to these since example.com/dir is not a duplicate of example.com/dir/, and update.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby Horizon70s » Mon Feb 02, 2009 10:15 pm

SeO wrote:It as well seems that you are not running the latest phpbb_seo_class.php code.


Hmmm...I am using phpBB3-SEO-Premod_V_3.0.4 - not sure how I ended up with old code?

I'll try the changes and see what happens, thanks.
Horizon70s
 
Posts: 32
Joined: Wed Jan 21, 2009 4:06 pm

Postby dcz » Wed Feb 04, 2009 10:18 am

What about the suffix trick, worked ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby Horizon70s » Wed Feb 04, 2009 3:52 pm

Can you show me what you mean by the "suffix trick"? Like an example line in the config? Is this something I change on all the .htaccess lines manually or some setting that I'm missing? Or is it the "RegEx right or left slashes"?


I'm really confused on how your admin and the .htaccess works. I'm no stranger to working with .htaccess or phpBB, but I'm really stumped and I keep going round and round with problems that I'm assuming are related to .htaccess.

It seems that any changes I make in the "URL Rewriting settings" in the admin, isn't changing the .htaccess section in there. And I see a lot of references to regenerating the .htaccess file and I cannot find where to do that in the admin anywhere?

I've got 3 separate installs of phpBB3-SEO-Premod_V_3.0.4 in 3 different test sites and I can't get any of them to work (using them to test settings to get it to work).
Horizon70s
 
Posts: 32
Joined: Wed Jan 21, 2009 4:06 pm

Postby Horizon70s » Sun Feb 08, 2009 5:10 pm

Can anyone shed some light for me?
Horizon70s
 
Posts: 32
Joined: Wed Jan 21, 2009 4:06 pm

Postby dcz » Mon Feb 09, 2009 12:40 pm

From your forum rewriterule above :
Code: Select all
RewriteRule ^forum([0-9]+)(-([0-9]+))?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]

we can tell that you manually edited the phpbb_seo_class.php file to use no suffix at all for forums.

This just cannot work, so this is the suffix trick, put something back there, like .html or '/', and then re-generate your .htaccess.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm


Return to Simple SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests