WordPress mod_rewrite not working on php fpm

It was a nginx config problem

Solved it by adding this line to .conf file

try_files $uri $uri/ /index.php?q=$uri&$args;

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