Convert mod rewrite rules to Nginx Rewrite

Completed Posted Jun 3, 2010 Paid on delivery
Completed Paid on delivery

Hi

I need someone who knows how to convert the following apache modrewrite rules to Nginx;

## Activate the mod_rewrite Engine

RewriteEngine On

RewriteCond %{QUERY_STRING} (.*)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ [url removed, login to view]$1&%1 [NC]

RewriteCond %{QUERY_STRING} (.*)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ [url removed, login to view]$1&%1 [NC]

RewriteCond %{QUERY_STRING} (.*)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ [url removed, login to view]$1&%1 [NC]

RewriteCond %{QUERY_STRING} (.*)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ [url removed, login to view]$1&%1 [NC]

RewriteCond %{QUERY_STRING} (.*)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ [url removed, login to view] [NC,L]

Thanks

Apache Linux Nginx

Project ID: #703249

About the project

1 proposal Remote project Active Jun 7, 2010

Awarded to:

softcom

I can convert these rules into nginx conf.

$30 USD in 1 day
(63 Reviews)
5.5