Currently Wordpress seems to sabotage all URLs (even those in the /app/ directory).
Can you give some info exactly what happens here?
NGINX doesn't use htaccess files so you'll need to recreate any necessary rules in the NGINX site config file. Mostly this is fine but some WordPress plugins write directly to the htaccess file so watch out for those.
Here is my NGINX site config file for a WordPress site. If a file/folder exists then it will serve that directly otherwise it will pass the uri along to the WordPress index.php where it will be dealt with.
server {
listen 80;
server_name example.com;
root "/home/vagrant/Code/example.com/public";
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/example.com-error.log error;
sendfile off;
client_max_body_size 100m;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
location ~ /\.ht {
deny all;
}
}