seo:url rewrite for phpbb3.Esay!

Main phpBB support such as administration and configuration for 3.x line only.

Moderator: Moderators

seo:url rewrite for phpbb3.Esay!

Postby sinauser on Sun Nov 09, 2008 5:01 am

viewforum.php?f=3 => viewforum-3.html

viewtopic.php?f=3&t=1607 => viewtopic-3-1607.html

btw: the "php-seo-mod" is so fat :mrgreen:

do it yourself after me,it's easyly!

now open your phpbb3 folder:

open file:viewforum.php

around line 608:
Code: Select all
$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . (($row['forum_id']) ? $row['forum_id'] : $forum_id) . '&t=' . $topic_id);
//modify it below:
$view_topic_url = "./viewtopic".'-' . (($row['forum_id']) ? $row['forum_id'] : $forum_id) . '-' . $topic_id.'.html';

open file:includes/functions_display.php
Code: Select all
//around line 302:
$u_viewforum = append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']);
//modify it below:
$u_viewforum = "./viewforum". '-' . $row['forum_id'].'.html';

//around line 526:
'U_VIEW_FORUM'       => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $parent_forum_id))
//modify it below:
'U_VIEW_FORUM'       => "./viewforum". '-' .$parent_forum_id.'.html')

//around line 537:
'U_VIEW_FORUM'       => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_data['forum_id']))
//modify it below:
'U_VIEW_FORUM'       => "./viewforum". '-' .$forum_data['forum_id'].'.html')

then add this to you .htaccess(at phpbb3/)
Code: Select all
RewriteRule ^viewforum-([0-9]+)\.html(.*) viewforum.php?f=$1$2
RewriteRule ^viewforum-([0-9]+)-([0-9]+)\.html(.*) viewtopic.php?f=$1&t=$2$3

OKay! the url rewrite is working now.

for example: ... -1618.html ( you can do other style by yourself)
Registered User
Registered User
Posts: 3
Joined: Sun Nov 09, 2008 4:54 am

Re: seo:url rewrite for phpbb3.Esay!

Postby solankie on Wed Apr 15, 2009 6:59 am

How to get high Google SERP for keyword seocontest2008 ? I am addressing my questions to those having experience in SEO (search engine optimization). How to get high search engine result position on for a keyword like 'seocontest2008' while there are over half million pages listed already? I am interested in free or very low cost solutions that I could implement with 1-2 hours of work per day.
Registered User
Registered User
Posts: 1
Joined: Mon Apr 13, 2009 10:25 am

Return to phpBB Support

Who is online

Users browsing this forum: Bing [Bot] and 1 guest