[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2

phpBB2 SEO Mixed mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting categories and forums titles in their URLs, but keeping a static rewriting for topics.

Moderator: Moderators

Postby Darth Pincho » Fri Oct 06, 2006 9:10 pm

Well i have one problem with SEO mod rewrite, or Zero Dupe plugin.

When i post a reply in my forum, automatically the forum redirects to the reply and you see your post. Well the forum is trying to find this address after my last reply reply:

http://www.tupincho.net/foro/post54000.html

And i get 404 error.

But if i write

http://www.tupincho.net/foro/viewtopic.php?p=54000

works perfectly. Why?

You can see all the actual content of viewtopic here:
http://www.tupincho.net/foro/viewtopic.txt

And my .htacces rewrite rules are:
Code: Select all
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^tupincho\.net$ [NC]
RewriteRule ^(.*) http://www.tupincho.net/$1 [QSA,L,R=301]

RewriteBase /


#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^foro/.+/([^/]+\.html)$ /foro/index.php [R=301,L]
# CATEGORIES
RewriteRule ^foro/.+-vc([0-9]+)\.html$ /foro/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^foro/.+-vf([0-9]+)-([0-9]+)\.html$ /foro/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^foro/.+-vf([0-9]+)\.html$ /foro/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^foro/topic([0-9]+)-([0-9]+)\.html$ /foro/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^foro/topic([0-9]+)\.html$ /foro/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^foro/post([0-9]+)\.html$ /foro/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^foro/member([0-9]+)\.html$ /foro/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################


according to this rule:
# POST
RewriteRule ^foro/post([0-9]+)\.html$ /foro/viewtopic.php?p=$1 [QSA,L]
everything is ok

ANY IDEAS?
Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/
Darth Pincho
PR1
PR1
 
Posts: 146
Joined: Fri Sep 22, 2006 8:37 pm

Advertisement

Postby gowap » Fri Oct 06, 2006 10:29 pm

You're running mixed rewrite but the zero dupe plugin dcz mistakenly provided you is generating advanced rewrite (title injection in urls, ie : something-vt.html and you don't have a htaccess rewriterule to handle these "-vt" urls --> 404 error).

to fix it and switch to zero dupe with the mixed rewrite:
edit viewtopic.php and Find :
Code: Select all
$url= PHPBB_URL . format_url($forum_topic_data['topic_title']) . '-vt' . $forum_topic_data['topic_id'] . ( ($start !=0) ? "-$start" : '' ) . ".html" . (( $post_id ) ? '#' . $post_id : '');

Replace
Code: Select all
format_url($forum_topic_data['topic_title']) . '-vt'

with
Code: Select all
'topic'


Off-topic : Google adsense rules state that you can have max 4 partner ads on one page. On your forum every admin puts 3 partner ads in their signature when they post a single message ! In the example topic you gave above there are 9 google partner ads on a single topic page becasue of 3 adin posts. If I were you I won't continue like that, google may kick you from the adsense program.
Gravure-News : la communauté francophone de la gravure de CD/DVD et son forum d'entraide.
User avatar
gowap
phpBB SEO Team
phpBB SEO Team
 
Posts: 1504
Joined: Sun May 07, 2006 10:56 pm

Postby Darth Pincho » Sat Oct 07, 2006 1:28 am

jejeje little mistake of my frien DCZ who send me the wrong zerodupe mod. No problem!! i made the changes and now works great.

Thanks a lot for your help friend. I will deeply test my forum in order to find any other problem. Can you please send PM to me with zerodupe mixed mod in order to verify all the codes i put??
Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/
Darth Pincho
PR1
PR1
 
Posts: 146
Joined: Fri Sep 22, 2006 8:37 pm

Postby dcz » Sat Oct 07, 2006 7:19 am

Gowap is very right, and was thinking blinded, I am impressed, and sorry for the mixed mixed :lol:

Thanks gowap ;)
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby gowap » Sat Oct 07, 2006 2:48 pm

Darth Pincho wrote:Can you please send PM to me with zerodupe mixed mod in order to verify all the codes i put??

I do not have it :D
I'm using advanced rewrite, and as dcz said, to give you the fix, i "invented" it (it was quite obvious). You do not have to worry about other changes, this was the only different part between advanced and mixed rewrite.
Gravure-News : la communauté francophone de la gravure de CD/DVD et son forum d'entraide.
User avatar
gowap
phpBB SEO Team
phpBB SEO Team
 
Posts: 1504
Joined: Sun May 07, 2006 10:56 pm

Postby euroman » Thu Oct 26, 2006 1:41 am

Trying to install this mod.

1. I Installed Cyber Alien guest session np
2. Using Easymod
3. Manually copied so .htaccess is:

Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# CATEGORIES
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
# PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################


4. Seems to be at typo in the mod where it says include/function.php - Should be includes/functions.php ? correctet that

5. Error when changing footer so deleted that.

After that easymod installed with success but now forum down/blank page...
euroman
PR0
PR0
 
Posts: 81
Joined: Sat Oct 21, 2006 10:18 pm

Postby dcz » Thu Oct 26, 2006 8:30 am

Well, I think you should consider installing the mod without Eazymod, it's fast and easy.

The .htaccess is correct for a root installation.

4) : you're right ;)

5) don't forget the final touch is what will help out improving these mods ;)

The blank page suggest a parse error or something with error messages disabled at the server level.

Check you code changes, they are easy and not so many.


++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby euroman » Thu Oct 26, 2006 11:18 am

Did a manual install

Now everyting works except viewforum.

http://www.thegame-online.de/forum1.html dosent exist....
Last edited by euroman on Thu Oct 26, 2006 12:42 pm, edited 1 time in total.
euroman
PR0
PR0
 
Posts: 81
Joined: Sat Oct 21, 2006 10:18 pm

Postby euroman » Thu Oct 26, 2006 11:31 am

Last edited by euroman on Thu Oct 26, 2006 12:41 pm, edited 1 time in total.
euroman
PR0
PR0
 
Posts: 81
Joined: Sat Oct 21, 2006 10:18 pm

Postby euroman » Thu Oct 26, 2006 11:41 am

http://www.thegame-online.de/forum1.htm ... 8781abb364 - saw a sid - but maby it was my browsers cache when comming from another url...dont know...seem to be gone now.

[EDIT] Did the install all over again and same problems. forum/topic/member not working.
euroman
PR0
PR0
 
Posts: 81
Joined: Sat Oct 21, 2006 10:18 pm

Postby dcz » Thu Oct 26, 2006 2:15 pm

I think I get it, you're not using the mixed mod rewrite, so we're off topic here.

Then, before we proceed further in the correct thread, if simple mod rewrite is what you want, please check if mod rewrite is available on your server, because the .htaccess should work, you can try two last things on it : get rid of

Code: Select all
Options +FollowSymlinks


and / or get rid of all / before index, viewforum, viewtopic, etc ...

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby magicfun » Mon Nov 06, 2006 5:40 pm

Hi I recently installed the mixed re-write MOD found here. Something that I notice is that my sub forum links are all wrong. They don't have the correct name on them, but are all the same link. They go to the right place, it just has the wrong title injected into all of the sub forums. Do you know of anyone that had this similar issues with their forum if they have the simple sub-forums MOD already in their forum? It seems to make all of my sub-forums the name of my last category name. It is currently what-were-you-thinking...so all of my subforums have that link in front of them.
magicfun
 
Posts: 11
Joined: Mon Oct 23, 2006 7:45 pm

Postby dcz » Mon Nov 06, 2006 6:24 pm

This is because you need some additional modding (very few of them) for the sub forum mod (only with the mixed and advanced phpBB SEO mod rewrites, not required with the simple one).

So far both simple sub forum and pseudo sub forum are supported.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby varteju » Sat Nov 25, 2006 4:33 am

I have a question...i'm currently using the Simple Mod Rewrite (able2know's)...it works just fine but as you know it only changes the forums to forum-#.html and topics to about#.html! How would i install this mixed mod rewrite? Do i have to uninstall the simple mod rewrite first?

Thanks in advance!
varteju
 
Posts: 25
Joined: Sat Nov 25, 2006 4:28 am

Postby dcz » Sat Nov 25, 2006 1:07 pm

And welcome :D

This thread covers migrating to the phpBB SEO advanced mod rewrite, it's mostly the same with the mixed one, only the added code will change a bit.

Fell free to start a new thread for your case if you wish.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

PreviousNext

Return to phpBB2 Mixed mod rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests