Why does WordPress uses HTTPS for JS, CSS on EC2

The Reason for the Issue was https-redirection plugin. I wasnt aware there was https-redirection plugin installed. So, even though i checked wp-config.php & .htaccess for SSL redirects, the plugin was forcing SSL for CSS/JSS/images. I renamed the plugin folder and everything is proper now. sudo mv /var/www/html/wp-content/plugins/https-redirection /var/www/html/wp-content/plugins/STOP-https-redirection

Understanding Redirects

Q1. I’m inclined to not trust this message on this site and think it’s nothing to worry about. It states clearly below that the certificate covers mail.yoursite, www.yoursite and yoursite. I couldn’t reproduce this error trying a couple of other ssl checker services such as https://www.sslshopper.com/. It’s also notable that in the little mouseover ? … Read more

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