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 USE 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 2 633 08-20-2019, 01:39 PM
Last Post: Nupe360
  6 Easy Steps On How to Write a Blog About Home Improvement Kingsolomon 0 67 08-04-2019, 06:51 AM
Last Post: Kingsolomon
  How To Use Mp3 Tag Editor Script Free Download Emvidowealth 1 66 08-02-2019, 09:25 AM
Last Post: Kingsolomon
  WOW Get approved by Google Adsense in 3-5 days Opoopo 0 338 06-13-2019, 05:02 PM
Last Post: Opoopo
  TIPS How to add voice tag in a music using your Android phone Kingsolomon 0 495 06-01-2019, 12:38 PM
Last Post: Kingsolomon

Forum Jump:


Users browsing this thread:
1 Guest(s)

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