custom post archive URL is wrong

The problem is in the register functions, in rewrite, you have to change with-front to with_front.

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