Rewrites rules disappear after a while

Add your rules on the init action and just flush on activation, when some other code flushes them they will still be present.

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