Skip to content

Instantly share code, notes, and snippets.

@vanpariyar
Last active March 25, 2023 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanpariyar/d8a8fb4a59bf25c4da0b82ca4d778493 to your computer and use it in GitHub Desktop.
Save vanpariyar/d8a8fb4a59bf25c4da0b82ca4d778493 to your computer and use it in GitHub Desktop.
Wordpress HTTPS redirect prevent

put in wp-config.php file

if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false){
   $_SERVER['HTTPS']='on';
}   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment