Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To How to Fix Too Many Redirects Errors After Moving to SSL / HTTPS
#1
WordPress allows you to enforce SSL / HTTPS for the admin area by entering the following line into your wp-config.php file.
PHP Code:
define('FORCE_SSL_ADMIN'true); 
However, in some scenarios this setting alone would cause ‘Too many redirects‘ error. To fix this, you will need to add the following code to your wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’.
PHP Code:
define('FORCE_SSL_ADMIN'true);
// in some setups HTTP_X_FORWARDED_PROTO might contain 
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
 
      $_SERVER['HTTPS']='on'
Creativity Speaks!!! , Chat Me on Messenger @DonKhodex // +2349099784140
#2
Arrow
To Purchase Credit Click here , For how to make money on Sologet forum Click here 

HIRE ME FOR WEBSITE DESIGNING US THE PM BUTTON TO SEND ME MESSAGE

There is love in sharing
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  HOW TO How To Convert A Wordpress Theme Into A Blogger Template lagosmp 1 166 02-06-2019, 08:20 PM
Last Post: Kingsolomon
  WOW How to Change WordPress Theme via phpMyAdmin khodex 2 181 01-18-2019, 07:36 AM
Last Post: olades
  TIPS How To Allow Automatic Database Repair In Wordpress khodex 2 164 01-16-2019, 07:42 PM
Last Post: pola
  HOW TO How to Exclude a Category From Your WordPress Homepage khodex 1 152 01-09-2019, 07:55 AM
Last Post: Kingsolomon
  HOW TO Fix WordPress HTTP to HTTPS Redirect khodex 1 138 01-09-2019, 07:52 AM
Last Post: Kingsolomon

Forum Jump:


Users browsing this thread:
1 Guest(s)

How to Fix Too Many Redirects Errors After Moving to SSL / HTTPS00