Welcome! Log In Create A New Profile

Advanced

Need some help with rewrite rule translation

Simon Hönscheid
June 18, 2013 10:24AM
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
Simon

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Need some help with rewrite rule translation

Simon Hönscheid June 18, 2013 10:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 238
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready