Last active
June 22, 2018 15:04
-
-
Save TinyKitten/09ef77139ac4d0e28f8d4c0f99f25bcf to your computer and use it in GitHub Desktop.
WordPressでHTTPS設定にしたあとにtoo_many_redirectsになったときの対処法 ref: https://qiita.com/TinyKitten/items/2e77f54cd216ffbbf3bf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$_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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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