Wordpress: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Admin panel CSS Not Loading== <pre>Add the following code to wp-config.php file: define('CONCATENATE_SCRIPTS', false);</pre>") |
No edit summary |
||
| Line 2: | Line 2: | ||
<pre>Add the following code to wp-config.php file: | <pre>Add the following code to wp-config.php file: | ||
define('CONCATENATE_SCRIPTS', false);</pre> | define('CONCATENATE_SCRIPTS', false);</pre> | ||
==Too Many Redirect Error== | |||
<pre>Add below code in the wp-config.php file. | |||
/** SSL */ | |||
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'; | |||
If Cloudflare is installed, change SSL settings to Full</pre> | |||
Revision as of 05:15, 21 February 2023
Admin panel CSS Not Loading
Add the following code to wp-config.php file:
define('CONCATENATE_SCRIPTS', false);
Too Many Redirect Error
Add below code in the wp-config.php file.
/** SSL */
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';
If Cloudflare is installed, change SSL settings to Full