Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work

Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work

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