Welcome! Log In Create A New Profile

Advanced

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?

[code]
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]
[/code]
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready