| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
risoknop
Joined: 05 Aug 2008 Posts: 3
|
Posted: Tue Aug 05, 2008 12:12 pm Post subject: Lighttpd AND phpBB URL Rewrite? |
|
|
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. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
|
| Back to top |
|
 |
risoknop
Joined: 05 Aug 2008 Posts: 3
|
Posted: Thu Aug 07, 2008 8:28 pm Post subject: Re: Lighttpd AND phpBB URL Rewrite? |
|
|
So, I have managed to get Simple mod rewrite to work with Lighttpd
I have used these rewrite rules:
| Code: | 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. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3758
|
Posted: Mon Aug 11, 2008 9:03 am Post subject: Re: Lighttpd AND phpBB URL Rewrite? |
|
|
In theory, since I do not have any Lighttpd install, you should replace :
with :
and :
with :
But this is for the advanced mode, rules like :
| Code: | | "^/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: | | "^/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: | | "^/topic([0-9]+)\.html$" => "/viewtopic.php?f=$2&t=$1", |
which should be :
| Code: | | "^/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. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
risoknop
Joined: 05 Aug 2008 Posts: 3
|
Posted: Mon Aug 11, 2008 4:20 pm Post subject: Re: Lighttpd AND phpBB URL Rewrite? |
|
|
I have activated the URL rewriting in ACP now, lol.
Now it should work - http://sporeforums.com/
And thanks for tips  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |