My add_rewrite_rule is returning a 404

Solved. Nginx and WordPress were acting correctly. There was an error condition further down my request processing code.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)