Template_redirect works, but headers aren’t sent when checking via cURL

Template_redirect works, but headers aren’t sent when checking via cURL

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