Need some help with rewrite rule translation

wishmaster artemrts at ukr.net
Thu Jun 13 03:46:25 UTC 2013



 --- Original message ---
From: "Simon Hönscheid" <mailinglisten at simonhoenscheid.de>
Date: 13 June 2013, 01:14:11

 
> Hello List,
> 
> I managed to translate nearly all our old apache rules, but have some
> problems with the following ones:
> 
> # skip existing files
> RewriteCond %{REQUEST_FILENAME} -f [OR]
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteRule .* - [L]
> 
> RewriteRule ^favicon\.ico$ - [R=404,L]
> 
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^([0-9]+)\.(flv|gif)$ getFile.php?itemid=$1&type=$2 [L]
> 
> 
> 
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_URI} !\/upload\/
> RewriteRule ^(.*)$ upload/$1 [L]
> 
  And what is your own (draft) rules after reading 
  http://nginx.org/en/docs/http/converting_rewrite_rules.html ??



More information about the nginx mailing list