Lighttpd AND phpBB URL Rewrite?

Discussions and support about the different URL Rewriting techniques for phpBB2.

Moderator: Moderators

Lighttpd AND phpBB URL Rewrite?

Postby risoknop » Tue Aug 05, 2008 12:12 pm

Hello,

My forums are running on the Lighttpd webserver (instead of Apache). Is it possible to optimize URLs?

If yes, how to do it? Are there some special premodded phpBB3 files for Lighttpd?

Thanks for your help.
risoknop
 
Posts: 3
Joined: Tue Aug 05, 2008 12:01 pm

Advertisement

Postby dcz » Wed Aug 06, 2008 8:19 am

Here an article from someone who did install an old version of our phpBB2 mod rewrite on Lighttpd : http://www.cyberciti.biz/tips/lighttpd- ... rules.html

It should not be too hard to adapt it for the new rewriterules.

++
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 risoknop » Thu Aug 07, 2008 8:28 pm

So, I have managed to get Simple mod rewrite to work with Lighttpd :)

I have used these rewrite rules:

Code: Select all
   url.rewrite = (
   "^/forum([0-9]+)\.html$" => "/viewforum.php?f=$1",
   "^/forum([0-9]+)-([0-9]+)\.html$" => "/viewforum.php?f=$1&start=$3",
   "^/forum([0-9]+)/topic([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?f=$1&t=$2&start=$4",
   "^/topic([0-9]+)\.html$" => "/viewtopic.php?f=$2&t=$1",
   "^/post([0-9]+)\.html$" => "/viewtopic.php?p=$1",
   "^.+-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",
   "^/group([0-9]+)-([0-9]+)\.html$" => "/memberlist.php?mode=group&g=$1&start=$3",
   "^/group([0-9]+)\.html$" => "/memberlist.php?mode=group&g=$1",
   "^/the-team\.html$" => "/memberlist.php?mode=leaders",
   "^/member([0-9]+)\.html$" => "/memberlist.php?mode=viewprofile&u=$1",
   "^/unanswered\.html$" => "/search.php?search_id=unanswered&sr=topics",
   "^/unanswered-([0-9]+)\.html$" => "/search.php?search_id=unanswered&start=$1&sr=topics",
   "^/newposts\.html$" => "/search.php?search_id=newposts",
   "^/active-topics\.html$" => "/search.php?search_id=active_topics",
   "^/active-topics-([0-9]+)\.html$" => "/search.php?search_id=active_topics&start=$1",
   "^/member([0-9]+)-topics\.html$" => "/search.php?search_id=egosearch",
   "^/member([0-9]+)-posts\.html$" => "/search.php?author_id=$1&sr=posts",
   "^/announces/topic([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?t=$1&start=$3"
   )


You can check the result at my Spore Forums.
risoknop
 
Posts: 3
Joined: Tue Aug 05, 2008 12:01 pm

Postby SeO » Mon Aug 11, 2008 9:03 am

In theory, since I do not have any Lighttpd install, you should replace :

Code: Select all
.+-vt


with :

Code: Select all
[a-zA-Z0-9_-]*-t


and :

Code: Select all
.+-vf


with :

Code: Select all
[a-zA-Z0-9_-]*-f


But this is for the advanced mode, rules like :

Code: Select all
   "^/forum([0-9]+)/topic([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?f=$1&t=$2&start=$4",


suggest the simple mode.
And should by the way rather look like :
Code: Select all
   "^/forum([0-9]+)/topic([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?f=$1&t=$2&start=$3",


start is the third and not the fourth param.

The same kind of var number mismatch occurs in :
Code: Select all
   "^/topic([0-9]+)\.html$" => "/viewtopic.php?f=$2&t=$1",

which should be :
Code: Select all
   "^/topic([0-9]+)\.html$" => "/viewtopic.php?t=$1",


The forum you linked does not seem to have url rewriting activated right now, but you look pretty close to a working solution with this set of rules.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby risoknop » Mon Aug 11, 2008 4:20 pm

I have activated the URL rewriting in ACP now, lol.

Now it should work - http://sporeforums.com/

And thanks for tips ;)
risoknop
 
Posts: 3
Joined: Tue Aug 05, 2008 12:01 pm

Postby dcz » Wed Aug 13, 2008 1:14 pm

Rather looks like you switched to vb :

Powered by vBulletin® Version 3.7.2


Why doing so when phpBB has become such a killer soft ?

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

Re: Lighttpd AND phpBB URL Rewrite?

Postby ghostt » Tue May 26, 2009 2:57 pm

i moved the server and now its lighthttd is there a working httacces for advanced seo url=`?
ghostt
 
Posts: 12
Joined: Sun May 03, 2009 9:55 pm

Re: Lighttpd AND phpBB URL Rewrite?

Postby ghostt » Wed May 27, 2009 10:18 pm

need still help .its very important!°
ghostt
 
Posts: 12
Joined: Sun May 03, 2009 9:55 pm


Return to phpBB2 mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest