| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
Posted: Tue Oct 09, 2007 6:24 am Post subject: Re: Lighthttpd rewriterules |
|
|
I have also correctly installed the advanced mod with zero duplicate (last versions over RC5) and I'm getting a lot of 404 errors. It seems to happen when the forum tries to add ?sid=XXXXX to the URL, even with SIDs removal activated. Zero duplicate does not redirect these URLs.
I'm using lighthttp instead of apache. These are my lighthttp rules:
| Code: | "^/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", |
|
Last edited by Xabi on Tue Oct 09, 2007 7:17 am; edited 2 times in total |
|
| Back to top |
|
 |
|
 |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14779
|
|
| Back to top |
|
 |
Xabi PR0

Joined: 20 Jun 2007 Posts: 52
|
Posted: Tue Oct 09, 2007 9:03 pm Post subject: Re: Lighthttpd rewriterules |
|
|
We finally managed to solve this with these rules:
| Code: | "^/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", |
|
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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