phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Lighthttpd rewriterules

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
Xabi
PR0
PR0


Joined: 20 Jun 2007
Posts: 52

Lighthttpd rewriterulesPosted: 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
PR0


Joined: 20 Jun 2007
Posts: 52

Lighthttpd rewriterulesPosted: Tue Oct 09, 2007 7:10 am    Post subject: Re: Lighthttpd rewriterules

For example, I'm getting a lot of URLs like this, giving 404 errors: http://www.mydomain.com/forums/segunda-mano-f95.html?sid=8fe61e052020efae4d55a04aabe26e75
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14779

Lighthttpd rewriterulesPosted: Tue Oct 09, 2007 10:19 am    Post subject: Re: Lighthttpd rewriterules

I'm not a lighthttpd expert, never used it actually, but with isapi_rewrite, some workarounds are required to simulate the mod_rewrite QSA flag.

It's used to pass the eventually unused variables to the script, like SIDs in your case.

Take a look at the isapi_rewrite phpBB2 version, could help out.
Example :
Code:
RewriteRule /.+-vf([0-9]+)\.html(?:\?(.*))? /viewforum.php\?f=$1?2&$2: [I,L]


(?:\?(.*))? is used to grab the eventual additional variables, and ?2&$2: to send them to the script.

I unfortunately cannot test lighthttpd nor isapi_rewrite, but I'm sure it's possible to do something.

Had you seen this article about lighthttpd and phpBB SEO rewriting : http://www.cyberciti.biz/tips/lighttpd-phpbb-seo-mod_rewrite-rules.html

?

Could help out as well.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Xabi
PR0
PR0


Joined: 20 Jun 2007
Posts: 52

Lighthttpd rewriterulesPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14779

Lighthttpd rewriterulesPosted: Thu Oct 11, 2007 8:00 am    Post subject: Re: Lighthttpd rewriterules

Great Very Happy

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: