最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ssl - Why does Wordpress uses HTTPS for JS, CSS on EC2

programmeradmin0浏览0评论

I have migrated Wordpress site to EC2. Domain changes done in wp-config.php & in DB tables Also set AllowOverride All in Apache sites default conf.

Issue is: Even though nowhere I'm using force SSL, still, on page load all assets are loaded with https. Since, I dont have SSL certificate active, all those resource show ERR_CONNECTION in Browser Console. As a result, The Pages also do not render properly

I have migrated Wordpress site to EC2. Domain changes done in wp-config.php & in DB tables Also set AllowOverride All in Apache sites default conf.

Issue is: Even though nowhere I'm using force SSL, still, on page load all assets are loaded with https. Since, I dont have SSL certificate active, all those resource show ERR_CONNECTION in Browser Console. As a result, The Pages also do not render properly

Share Improve this question asked May 27, 2020 at 12:00 ShaileshShailesh 217 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 0

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
发布评论

评论列表(0)

  1. 暂无评论