Keywords: WordPress Multisite - AWS - How to - Other
Description:
Hi, I’m trying to configure my wordpress multisite to work with amazon lightsail distribution using this docs: Configuring your WordPress instance to work with your Amazon Lightsail distribution | Lightsail Documentation
I created a distribution and now I need to enable my instance to use : (HTTPS).
I followed all the staps but I can´t find the following lines of code: define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
To replace using: define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
if (isset($_SERVER[‘HTTP_CLOUDFRONT_FORWARDED_PROTO’])
&& $_SERVER[‘HTTP_CLOUDFRONT_FORWARDED_PROTO’] === ‘https’) {
$_SERVER[‘HTTPS’] = ‘on’;
}
Did you guys changed the the path to edit this files?