PHPBB 3 + Lighttpg + URL rewriting

Discussion in 'Site & Server Administration' started by risoknop, Jun 29, 2008.

  1. #1
    Hello,

    I'm trying to figure out how to manage to get SEO friendly URLs on PHPBB 3 powered forum running on Lighttpd webserver. There are premodded SEO friendly versions of PHPBB 3 for Apache but I haven't foun any for Lighttpd - I'm not sure something like that even exists.

    Anybody could help me with this?

    Thanks
     
    risoknop, Jun 29, 2008 IP
  2. Tipem

    Tipem Active Member

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #2
    Tipem, Jun 29, 2008 IP
  3. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the link Tipem. Yes I know that Lighttpd has its own version of URL rewrites.

    The problem is I am not sure how to use these rules for a PHPBB 3 forum. Let's say the forum is located in a forums folder which is located in the root directory (so it's basically mydomain.com/forums/).

    Can anybody tell me how should the rewrite rules look in this case?

    Thanks
     
    risoknop, Jun 30, 2008 IP
  4. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok I have done some googling and I have found these rewrite rules:

    "^/comunidad/(avisos/)?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html" => "/comunidad/viewtopic.php?t=$2&start=$4", 
    "^/comunidad/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html" => "/comunidad/viewforum.php?f=$1&start=$3", 
    "^/comunidad/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html" => "/comunidad/viewtopic.php?f=$1&t=$2&start=$4", 
    "^/comunidad/equipo-foros\.html" => "/comunidad/memberlist.php?mode=leaders", 
    "^/comunidad/post([0-9]+)\.html" => "/comunidad/viewtopic.php?p=$1", 
    "^/comunidad/usuario([0-9]+)\.html" => "/comunidad/memberlist.php?mode=viewprofile&u=$1",
    Code (markup):
    Could anyone tell me how to edit them for mydomain.com/forums/ case?
     
    risoknop, Jul 2, 2008 IP