Need some help with rewrite rule translation

Simon Hönscheid mailinglisten at
Wed Jun 12 22:14:41 UTC 2013

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]

Thanks for the help

More information about the nginx mailing list