Redirecting old permalink structure to new in htaccess

Try adding this code to .htaccess:

RedirectMatch 404 /\d{4}/\d{2}/\d{2}/(.*)\.html http://example.com/$1

It should fix the issue.

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