Welcome! Log In Create A New Profile


Need help with rewrite pules

Posted by gexly 
Need help with rewrite pules
February 02, 2011 11:45AM
I'm new to Nginx and having troubles with porting my mod_rewrite rules to Nginx rewrite. Can someone help?

RewriteEngine on

RewriteBase /

RewriteCond %forum/{REQUEST_FILENAME} !-f

RewriteRule ^forum([0-9]?)/(.*)\.gif$ http://blabla.com/img.php?nick=$2&sert=2$1 [L]
RewriteRule ^forum([0-9]?)([t]?[0-9]?)/(.*)\.gif$ http://blabla.com/img.php?nick=$3&sert=2$1&text=$2 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule (.*)$ index.php/$1 [QSA]
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 324
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready