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  
 
   
[Archive] phpBB SEO Simple mod Rewrite V 0.0.2
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Simple mod rewrite
::  
Author Message
HB.
PR0
PR0


Joined: 26 Oct 2006
Posts: 62

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Mon Oct 30, 2006 5:20 pm    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

Does anyone have any suggestions?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Mon Oct 30, 2006 5:37 pm    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

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 || 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
HB.
PR0
PR0


Joined: 26 Oct 2006
Posts: 62

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Mon Oct 30, 2006 6:38 pm    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

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.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Mon Oct 30, 2006 7:56 pm    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

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 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
HB.
PR0
PR0


Joined: 26 Oct 2006
Posts: 62

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Tue Oct 31, 2006 6:01 am    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

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

Quote:
## 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?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Tue Oct 31, 2006 8:52 am    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

Good Very Happy

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 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
HB.
PR0
PR0


Joined: 26 Oct 2006
Posts: 62

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Tue Oct 31, 2006 10:00 am    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

That would be great if you could send me the trick to achieve this. Smile Or does it really make a difference SEO wise if the index reads index.php instead of not displaying index.php?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Wed Nov 01, 2006 9:33 am    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

Let's continue here : http://www.phpbb-seo.com/boards/phpbb-forum/discussions-vt339.html#2649

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
yazerty
PR1
PR1


Joined: 30 Oct 2006
Posts: 173

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Thu Nov 02, 2006 8:56 am    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

Hello dcz Wink !

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 Wink

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


Wink


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 Confused ...

Isn't it possible to just link to the real url of the prev/next topic (without "view=" parameter in the url) ?

_________________
L'insolite Yazerty.Net - Interprétation et signification des rêves
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Thu Nov 02, 2006 9:08 am    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

Well, the french speaking forum was not out-dated : http://www.phpbb-seo.com/forums/mod-rewrite-phpbb/phpbb-seo-mod-rewrite-simple-vt46.html#1351 Wink

Anyway, great to read your English Very Happy

There is no simple way (without adding SQL) to take care of those, but the zero duplicate is : http://www.phpbb-seo.com/boards/viewtopic.php?t=303&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:
<!-- BEGIN switch_user_logged_in -->

and
Code:

<!-- END switch_user_logged_in -->


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
yazerty
PR1
PR1


Joined: 30 Oct 2006
Posts: 173

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Thu Nov 02, 2006 12:32 pm    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

(croisements multilatéral de posts Razz )

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

Code:
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 !

_________________
L'insolite Yazerty.Net - Interprétation et signification des rêves
Back to top
Visit poster's website
HB.
PR0
PR0


Joined: 26 Oct 2006
Posts: 62

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Thu Nov 02, 2006 6:20 pm    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

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:
Options +FollowSymlinks


Does not having this line in the .htaccess affect anything? It appears to work otherwise
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Fri Nov 03, 2006 11:07 am    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

No, it's okay to work without the :
Code:
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 Very Happy

++

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


Joined: 21 Oct 2006
Posts: 81

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Thu Nov 23, 2006 12:24 pm    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

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...?
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14327

[Archive] phpBB SEO Simple mod Rewrite V 0.0.2Posted: Thu Nov 23, 2006 5:30 pm    Post subject: Re: [Archive] phpBB SEO Simple mod Rewrite V 0.0.2

Exactly Wink

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 || 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  » Simple mod rewrite
Page 6 of 7 Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next

Navigation Similar Topics

Jump to: