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  
 
   
Topic nav not rewritten

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
zinnerz
PR0
PR0


Joined: 08 Jun 2006
Posts: 75

Topic nav not rewrittenPosted: Wed Jan 31, 2007 8:54 pm    Post subject: Topic nav not rewritten

Hi Dcz,

I found that topic navigation is not rewritten:



Smile
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Topic nav not rewrittenPosted: Wed Jan 31, 2007 9:26 pm    Post subject: Re: Topic nav not rewritten

This is on purpose.

Because it would mean two sql query per topic page to rewrite them properly, as you need to find out both next and previous topic info, which is why phpBB does not directly link to the next and previous topics.
So there is no real need to set up a new rewritten url type for links you should end up http 301 redirecting with the zero dupe, as they are originally a great source of duplicates.

So leaving these urls untouched is saving resources and the default robots.txt is disallowing them so ...

You could as here only show them to logged users if you prefer, but SEO wise, it's in all cases a link to disallow.

++

_________________
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
zinnerz
PR0
PR0


Joined: 08 Jun 2006
Posts: 75

Topic nav not rewrittenPosted: Wed Jan 31, 2007 10:07 pm    Post subject: Re: Topic nav not rewritten

Nice idea Wink
Thanks Dcz for the info..
Back to top
Visit poster's website
zinnerz
PR0
PR0


Joined: 08 Jun 2006
Posts: 75

Topic nav not rewrittenPosted: Wed Jan 31, 2007 10:24 pm    Post subject: Re: Topic nav not rewritten

Btw what is the code to mark a link in purpose to show for members only?
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Topic nav not rewrittenPosted: Wed Jan 31, 2007 10:47 pm    Post subject: Re: Topic nav not rewritten

You can do the following :

Code:
#
#-----[ OPEN ]------------------------------------------
#


viewtopic.php


#
#-----[ FIND ]------------------------------------------
#

$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");

//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
   'url' => $view_prev_topic_url,
   'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
   'url' => $view_next_topic_url,
   'title' => $lang['View_next_topic']
);


#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($userdata['session_logged_in']) {
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");

//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
   'url' => $view_prev_topic_url,
   'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
   'url' => $view_next_topic_url,
   'title' => $lang['View_next_topic']
);
}
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Will get rid of the same links in Mozilla navigation bar as well for guest
Wink

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: