rewrite rules

Jan Ślusarczyk jan.slusarczyk at dobrestrony.pl
Tue Jan 29 00:52:42 MSK 2008


I'm trying to move my vbulletin forum to nginx+fastcgi php. The  
traffic is killing apache2. The only thing left is rewrite rule for  
vbseo. I've been trying to convert them myself, but I have to give up  
and ask for your help. These are the rules:

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/ 
vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles| 
images)/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

Any help will be very appreciated. I will include the working code on  
Wiki for other users...

Thanks
Jan 





More information about the nginx mailing list