[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 dcz » Wed Dec 27, 2006 10:35 am

Well the forum rewriterules do works nicely.

You just need to only start mod_rewrite once :

Code: Select all
Options +FollowSymlinks
RewriteEngine On
RewriteBase /

#here the www rule
RewriteCond %{HTTP_HOST} !^www\.edu-hq\.com$ [NC]
RewriteRule ^(.*)$ http://www.edu-hq.com/$1 [R=301,L]

# FORUM PROTECTION RULE
RewriteRule ^forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/.+-vt([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.+-vt([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]

# BEGIN WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress


Now as said in the www prefix thread, you'll may need to tweak a bit the www rule before it will work nicely, but the principle is here ;)

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

Advertisement

Postby swollenpickles » Wed Dec 27, 2006 11:35 am

Cool thanks. I change my htaccess as you suggested and everything seems to be working fine. Only problem is that now with my forum, all the links work until I go to click on a post link.
eg. the level works:
http://www.edu-hq.com/forum/pre-school- ... s-vf4.html

this level doesn't work:
http://www.edu-hq.com/forum/topic40.html
swollenpickles
 
Posts: 18
Joined: Mon Dec 18, 2006 11:55 am

Postby dcz » Wed Dec 27, 2006 11:39 am

These two rules :

Code: Select all
# PAGINATED TOPIC
RewriteRule ^forum/.+-vt([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.+-vt([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]


Are from the advanced mod rewrite, so you should use :

Code: Select all
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]


Instead ;)
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 swollenpickles » Wed Dec 27, 2006 11:50 am

Cool it's all working again thanks!!!! :D
swollenpickles
 
Posts: 18
Joined: Mon Dec 18, 2006 11:55 am

Postby miki24686 » Thu Dec 28, 2006 8:26 pm

mmm, I installed the whole MOD(also patch for simple sub forums), but my forum isn´t working:
Code: Select all
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@ande.sk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at hpcafe.info Port 80


I´m not sure with configuration .htaccess, because my forum is in root such like this:
root-backup
-data
-logs
-public_html-here is installed my phpbb
I try it with this .htaccess:
Code: Select all
Options +FollowSymlinks
RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([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
#####################################################

can anybody helps me?? :( :(
miki24686
 
Posts: 6
Joined: Thu Dec 28, 2006 8:18 pm

Postby miki24686 » Thu Dec 28, 2006 8:41 pm

anyb?
miki24686
 
Posts: 6
Joined: Thu Dec 28, 2006 8:18 pm

Postby dcz » Thu Dec 28, 2006 10:57 pm

A bit fast for a bump ;)

Anyway welcome :D

So you do put you .htaccess in the public_html/ folder.

hum.

Try getting rid of :

Code: Select all
Options +FollowSymlinks


And eventually of all slashes ("/") right before the phpbb script file-names in the rewriterules eg :

Code: Select all
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ index.php?c=$1 [QSA,L]

...


Then, is could as well be because of file transfer, but I doubt.

Your server is Apache, but still, check if mod_rewrite is available on your server as well. If so, it will work ;)

++
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 miki24686 » Thu Dec 28, 2006 11:34 pm

heh, i ve posted the second post and later i wanted to delete it but i could not, so i edited it to anyb...i´m sorry
anyway i´m going to try it..thanks a lot :D
miki24686
 
Posts: 6
Joined: Thu Dec 28, 2006 8:18 pm

Postby miki24686 » Fri Dec 29, 2006 12:11 pm

so i completely installed this mod(mixed seo) but i have probs with alphabet-
i´m from slovakia and we use hiccups and letters like this: ľščťžýáíé, for example:
my first forum is called Čítajte ako prvé so the url would be http://hpcafe.info/citajte-ako-prve-vf1.html, but it is something like this:
hpcafe.info/yun-tajte-ako-prvn-vf1.html

So, is there anybody out there, who could help me? :D
miki24686
 
Posts: 6
Joined: Thu Dec 28, 2006 8:18 pm

Postby dcz » Fri Dec 29, 2006 12:48 pm

Maybe this thread will help out ;)

++
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 dcz » Tue Jan 23, 2007 1:47 am

0.2.0 update for this mod is out ;)

Updating is easy, but you'll have to make sure all the patches you're using are up to date too.

All patches will be updated and released real soon.

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

Code not FOUND

Postby esiason14 » Thu Feb 01, 2007 4:37 am

This piece of code is not in my index.php.

Code: Select all
      if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
      {


Currently using 2.0.21. Any ideas?
esiason14
 
Posts: 3
Joined: Wed Jan 31, 2007 6:53 am

Postby dcz » Thu Feb 01, 2007 11:22 am

Well first, make sure you're not using the 0.0.2, but the 0.2.0 versions ;)

Then, is you can't find this part with 0.21, it most likely means that you did not update properly as I think this should already be added in 0.21.

By the way, updating to 0.22 is not too much work, you should do it.

So please make sure about your index.php file, if it was not too heavily modded, you can compare it with a fresh phpBB 0.22 one, using winmerge for example.

It this part was modded by a mod, which I kind of doubt, please tell us more about it.

As well, we shall continue this on another thread since this one is dedicated to the older version support, mostly for historical purposes.

++
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 esiason14 » Thu Feb 01, 2007 5:44 pm

Thanks. This is for a heavily modded forum. I will update to .22 first and then try. Thansk!!
esiason14
 
Posts: 3
Joined: Wed Jan 31, 2007 6:53 am

Postby dcz » Thu Feb 01, 2007 11:35 pm

Good choice ;)
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

Previous

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