[Archive] phpBB SEO Simple mod Rewrite V 0.0.2

phpBB2 SEO Simple mod Rewrite support forum.
This mods performs a fully static URL rewriting for phpBB.
Simple and efficient.

Moderator: Moderators

Postby HB. » Mon Oct 30, 2006 5:20 pm

Does anyone have any suggestions?
HB.
PR0
PR0
 
Posts: 62
Joined: Thu Oct 26, 2006 1:26 am

Advertisement

Postby dcz » Mon Oct 30, 2006 5:37 pm

Sorry I missed this one, and actually, you don't need to install the guest session mod as you are using CH (which already takes care about this or should).

So do not bother with this, keep the SID part unchanged ;

++
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 HB. » Mon Oct 30, 2006 6:38 pm

Thank you, now remember I'm using a older version of CH 2.1.1. I don't know if the older versions take care of the guest session. I guess I'll have to find out, but I did notice before installing the SID MOD, I did have SIDs for guests.
HB.
PR0
PR0
 
Posts: 62
Joined: Thu Oct 26, 2006 1:26 am

Postby dcz » Mon Oct 30, 2006 7:56 pm

The mod should get rid of SIDs for guest anyway, I never tested it with CH 2.11, worth a try, but you'd better do some local testings before, or better, upgrade ;)
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 HB. » Tue Oct 31, 2006 6:01 am

Ok, it appears that I got the MOD to work, the only thing I've noticed is the index still reads index.php instead of index.html. I also noticed the files to edit read index.php, but I don't see that file to edit

## Files To Edit: (5)
## .htaccess,
## index.php,
## includes/function.php,
## includes/session.php,
## viewtopic.php


How can I get the index to display index.html instead of index.php?
HB.
PR0
PR0
 
Posts: 62
Joined: Thu Oct 26, 2006 1:26 am

Postby dcz » Tue Oct 31, 2006 8:52 am

Good :D

I think the best her would be to get totally rid of index.php in our URLs.

Amir started a thread about this, the suggested code is for now needing the zero duplicate code, which is not ready for CH yet, but I could send your there the trick to achieve this particular redirection without ;)

++
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 HB. » Tue Oct 31, 2006 10:00 am

That would be great if you could send me the trick to achieve this. :) Or does it really make a difference SEO wise if the index reads index.php instead of not displaying index.php?
HB.
PR0
PR0
 
Posts: 62
Joined: Thu Oct 26, 2006 1:26 am

Postby dcz » Wed Nov 01, 2006 9:33 am

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 yazerty » Thu Nov 02, 2006 8:56 am

Hello dcz ;-) !

I'm reading the english board and I saw this, that could answer to a question I post in the french board :

dcz wrote:I am currently working on enhancing phpBB links and to organise the phpBB SEO Toolkit. I thought the next and previous topic links should not be shown to guest any more as they are duplicates, and that this change was to be added in this mod, as it requires very few changes.

Here is the code change that will be added to the next version, you can implement it now as it's final ;)

Code: Select all
#
#-----[ 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


;)


Is it normal that after that modification I always have the nav links, but linking to my board index when "login" as guest (links are ok when I'm login whith my profile ?

That will make no sense for guest visitors, don't you think :- ? They click on "prev/next" and aarrive on the board index :? ...

Isn't it possible to just link to the real url of the prev/next topic (without "view=" parameter in the url) ?
yazerty
PR1
PR1
 
Posts: 180
Joined: Mon Oct 30, 2006 1:13 am

Postby dcz » Thu Nov 02, 2006 9:08 am

Well, the french speaking forum was not out-dated : http://www.phpbb-seo.com/forums/mod-rew ... .html#1351 ;)

Anyway, great to read your English :D

There is no simple way (without adding SQL) to take care of those, but the zero duplicate is : http://www.phpbb-seo.com/boards/viewtop ... &view=next

If you prefer, you can add a switch in you tpl file as well to get rid of the empty prev/next link :
Just put the html part in viewtopic_body.tpl in between :
Code: Select all
<!-- BEGIN switch_user_logged_in -->

and
Code: Select all
<!-- END switch_user_logged_in -->


;)
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 yazerty » Thu Nov 02, 2006 12:32 pm

(croisements multilatéral de posts :P )

So, thank you for your answer. I made this :

Code: Select all
OPEN
viewtopic_boy.tpl

FIND
<td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span></td>

REPLACE WITH
<td class="catHead" colspan="2" height="28">
      <!-- BEGIN switch_user_logged_in -->
      <span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> &nbsp;</span>
      <!-- END switch_user_logged_in -->
</td>

SAVE/UPLOAD


This work very well : the members show the navigation links and the guests and spider bots see... nothing. I think this is more logic.

Mmm thanks to phpbb-SEO my board seems to be ready for a google rush now. Go google, Go !
yazerty
PR1
PR1
 
Posts: 180
Joined: Mon Oct 30, 2006 1:13 am

Postby HB. » Thu Nov 02, 2006 6:20 pm

ok dcz, I'm really stumped here. You did help me get this working, but it was on my test site. Now I'm having problems installing this mod on my live board (different host).

What I've noticed is if I insert this line into the .htaccess I get a 500 error

Code: Select all
Options +FollowSymlinks


Does not having this line in the .htaccess affect anything? It appears to work otherwise
HB.
PR0
PR0
 
Posts: 62
Joined: Thu Oct 26, 2006 1:26 am

Postby dcz » Fri Nov 03, 2006 11:07 am

No, it's okay to work without the :
Code: Select all
Options +FollowSymlinks


directive.

Actually, if you cannot use it, it's because it's being done at higher level in the server (VHOST), so no worries at all :D

++
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 euroman » Thu Nov 23, 2006 12:24 pm

I have simple mod rewrite. Now I would like to make a category in the forum. Can I do that just like that - or do I have to update something? Because I can understand there is a simple mod rewrite Category edition !?!

EDIT: I done it and it seemes fine. So the category hierachy mod is for forums within forums...?
euroman
PR0
PR0
 
Posts: 81
Joined: Sat Oct 21, 2006 10:18 pm

Postby dcz » Thu Nov 23, 2006 5:30 pm

Exactly ;)

All phpBB function do work with the phpBB SEO mod rewrite, you can add categories forum and topics as you want.

As you find out, the special edition is meant for he categories hierarchy mod, which is actually allowing multi-level sub forums.
It's almost a phpBB fork since most of it is changed with this mod, so I would only recommend it if you need more than one sub forum level. Otherwise it would be a lot easier to deal with the simple sub forum mods.

++
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

PreviousNext

Return to phpBB2 Simple mod rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest