xanmanning/Knoxious-Open-Pastebin — Issue #16: nginx rewrite improvement
Author: akuznecov
Created: 2011-12-19 12:44:51+00:00
State: open

It is better to use [try_files](http://wiki.nginx.org/HttpCoreModule#try_files) directive instead of "if !-e" check

location / {
try_files $uri $uri/ @rewrite;
}

location @rewrite {
rewrite ^/(.*)$ /index.php?i=$1;
}