WordPress HTTPS redirected you too many times. HTTP working fine

We need to updated below code in wp-config.php

/** SSL */  
define('FORCE_SSL_ADMIN', true);  
// in some setups HTTP_X_FORWARDED_PROTO might contain  
// so check for https existence  
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)  
    $_SERVER['HTTPS']='on';

Update siteurl & home with https in database.
Advertisement

How do I forward my-domain.com to www.my-domain.com using GoDaddy?

Please find below steps to forwarding…

  1. Login into godaddy.
  2. Go to “My account” select “Mange domain”.
  3. In domain settings see “Forwarding” section click on “Manage” under Domain.
  4. In Forwarding and Masking page “Add Forwarding”.
  5. Within “Add Forwarding” add domain name with http://www.my-domain.com with 301(Permanent).
  6. Please check the “Name servers” checkbox weather you need to update “Name servers” or not.
  7. It will take around 48 hours to propagate.

Domain name setup to aws hosting

Please follow steps below specified….

  1. AWS services  ->  Route 53  -> Hosted zones.
  2. Click on “Create Hosted Zone” fill domain name with “Public hosted zone”.
  3. Copy NS records from Route 53.
  4. Login into domain registration like Godaddy  ->  Name servers  ->  Add NS records which are copied from Route 53.
  5. AWS services  ->  Route 53  -> Hosted zones.
  6. Select created hosted zone.  ->  Create Record Set  ->  Name with “www” and value with public IP which is founded in ec2 instance.
  7. It’s will take time to propagate wait some time and then check domain name.