3
votes

I recently migrated from HostGator to AWS. Everything has worked, including the SSL. This happens on all browsers. Here is what I have setup: (Screenshots attached)

An EC2 instance that's running the WordPress AMI and has an Elastic IP assigned EC2
ACM for both domain.com and www.domain.com, verified by DNS on Route 53 ACM
Target Group with port 80 and HTTP protocol being targeted to the EC2 instance Target Group
Load Balancer listening to port 80 and 443 both forwarded to Target Group Load Balancer
Route 53 with the A record using the Load Balancer as an alias Route 53
CloudFront with domain.com as origin domain name(www.domain.com as CNAME), protocol of "Match Viewer", and connected to the ACM certificate CloudFront.

What would be causing the error? Where should I start looking?

1

1 Answers

3
votes
  1. Check URL settings via Administrator Dashboard

enter image description here

  1. or change the URL from wp-config.php

simply add these two lines of code there

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

3. or check deactivating all plugin, anyof plugin maycauing the issue

  1. or try using Simple SSL plugin.