Installed-- but no SEO-friendly URLs ...

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

Installed-- but no SEO-friendly URLs ...

Postby jmueller0823 » Thu Jan 01, 2009 11:49 pm

Just installed mod-rewrite in phpBB3...

I'm comparing our experience with SEO mod-rewrite in our
phpBB2 forums...

While logged-out, we should see SEO-friendly URLs, correct?
(i.e. Topic should be in the URL.)

Currently (while logged-out) the URLs look like:

-- mysite.com/boards/topic1266.html
-- mysite.com/boards/emotional-needs-f3.html

-- Cleared the cache, no errors
-- The mod is "On" in the ACP.
-- The htaccess (below) is located in the root (mysite.com/)


Ideas anyone? Thanks.


RewriteEngine On
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^boards/forum\.html$ /boards/index.php [QSA,L,NC]
# FORUM
RewriteRule ^boards/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /boards/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^boards/[a-z0-9_-]*-f([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /boards/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^boards/announces/topic([0-9]+)(-([0-9]+))?\.html$ /boards/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^boards/([a-z0-9_-]*)/?topic([0-9]+)(-([0-9]+))?\.html$ /boards/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^boards/member([0-9]+)\.html$ /boards/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^boards/member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /boards/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^boards/group([0-9]+)(-([0-9]+))?\.html$ /boards/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^boards/post([0-9]+)\.html$ /boards/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^boards/active-topics(-([0-9]+))?\.html$ /boards/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^boards/unanswered(-([0-9]+))?\.html$ /boards/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^boards/newposts(-([0-9]+))?\.html$ /boards/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^boards/the-team\.html$ /boards/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^boards/([a-z0-9_-]+)(-([0-9]+))\.html$ /boards/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^boards/([a-z0-9_-]+)\.html$ /boards/viewforum.php?forum_uri=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
jmueller0823
PR0
PR0
 
Posts: 54
Joined: Sat Dec 27, 2008 2:50 am

Advertisement

bump please ...

Postby jmueller0823 » Sat Jan 03, 2009 6:01 pm

bump please ...
jmueller0823
PR0
PR0
 
Posts: 54
Joined: Sat Dec 27, 2008 2:50 am

Postby SeO » Sun Jan 04, 2009 9:06 am

There is nothing wrong here, this is what the mixed mod does, it inject keywords in forum urls but keeps a static rewrite for topics.

It's an in between of the simple and the advanced version which can be really a good solution for many cases (where topic title moderation is too much work).

Note that the virtual folder option is particularly interesting in mixed mode :
forum-url/topicxx.html vs topicxx.html
for a topic ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby jmueller0823 » Sun Jan 04, 2009 11:17 pm

There is nothing wrong here, this is what the mixed mod does, it inject keywords in forum URLs but keeps a static rewrite for topics.


Okay. Maybe I don't understand the "mixed" mod.

The topic URLs are always static? They won't
contain keywords? Doesn't sound very SEO-effective to me.

Again, I'm comparing to what we had in phpBB2...
All of those topic URLs contained keywords.


Please clarify. Thanks again.
jmueller0823
PR0
PR0
 
Posts: 54
Joined: Sat Dec 27, 2008 2:50 am

Postby SeO » Mon Jan 05, 2009 10:02 am

The advanced mod will inject topic titles as well, but it's not necessarily a good thing in all cases SEO wise since there is no real point to inject title such as "hello, weaver is pretty nice out there" in a topic url.

It all depends on the average topic title quality you can maintain on your forum.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm


Return to phpBB2 Mixed mod rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest