Skip to content

Instantly share code, notes, and snippets.

@TinyKitten
Last active June 22, 2018 15:04
Show Gist options
  • Save TinyKitten/09ef77139ac4d0e28f8d4c0f99f25bcf to your computer and use it in GitHub Desktop.
Save TinyKitten/09ef77139ac4d0e28f8d4c0f99f25bcf to your computer and use it in GitHub Desktop.
WordPressでHTTPS設定にしたあとにtoo_many_redirectsになったときの対処法 ref: https://qiita.com/TinyKitten/items/2e77f54cd216ffbbf3bf
$_SERVER['HTTPS'] = 'on';
$_ENV['HTTPS'] = 'on';
$_SERVER['HTTP_HOST'] = 'YOUR_BLOG_URL_HERE';
$_SERVER['SERVER_NAME'] = 'YOUR_BLOG_URL_HERE';
$_ENV['HTTP_HOST'] = 'YOUR_BLOG_URL_HERE';
$_ENV['SERVER_NAME'] = 'YOUR_BLOG_URL_HERE';
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment