PHP Bulletin Board (phpBB) is a popular Internet forum package written in the PHP programming language. It is free software released under GNU GPL Public License.
phpBB supports mods. These are code modifications created by the phpBB community. For search engine optimization you will find MOD here.
However this mod is Apache specific. To run phpBB SEO MOD under Lighttpd web server you need to make modification.
Procedure
First download and apply phpBB SEO MOD by visiting this url.
Open your lighttpd configuration
# vi /etc/lighttpd/lighttpd.conf
Find out your virtual host (domain) specific configuration and append the rules as follows:
url.rewrite = (
"^.+-vc([0-9]+)\.html$" => "/index.php?c=$1",
"^.+-vf([0-9]+)-([0-9]+)\.html$" => "/viewforum.php?f=$1&start=$2",
"^.+-vf([0-9]+)\.html$" => "/viewforum.php?f=$1",
"^.+-vt([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?t=$1&start=$2",
"^.+-vt([0-9]+)\.html$" => "/viewtopic.php?t=$1",
"^.+-vt([0-9]+)\.html\?highlight=.*" => "/viewtopic.php?t=$1&highlight=$2",
"^/post([0-9]+)\.html$" => "/viewtopic.php?p=$1",
"^/member([0-9]+)\.html$" => "/profile.php?mode=viewprofile&u=$1"
)
Note: You must change / with your real phpBB installation folder or with nothing if it's installed in the webroot /.
Save and close the change. Restart lighttpd webserver:
# /etc/init.d/lighttpd restart
If you are applying mx Google Sitemaps mod add following mod_rewrite rules to above ruleset:
"/sitemaps.xml" => "/sitemap.php",
"/forum-sitemap-([0-9]+).xml" => "/sitemap.php?fid=$1",
"/sitemap-forum.xml$" => "/sitemap.php?forum"
Save and close the file.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












I was hunting for these rules. thanks.
Which version of SEO MOD is this? Advanced Mod Rewrite?
Thanks!
It isn`t working when request url is: http://domain/post28.html?highlight=word OR http://domain/board-f2-50.html?start_letter=.
Here is my “repaired” config: http://pastebin.com/m40c8267a
Hi.
What should I do to upload avatar in my profile?
Thanks.
Hey! Just joined the community and want to introduce myself.
I am Alice and I’m from NY, USA.
Nice 2 meet you! :)
Comments on this post are closed. If you'd like to continue the discussion on this topic, you can do so at our forum.