Convert mod rewrite rules to Nginx Rewrite

已完成 已发布的 Jun 3, 2010 货到付款
已完成 货到付款

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

阿帕奇 Linux Nginx

项目ID: #703249

关于项目

1个方案 远程项目 活跃的Jun 7, 2010

授予:

softcom

I can convert these rules into nginx conf.

$30 USD 在1天内
(63条评论)
5.5