The header, footer, theme options went missing on the website.
I am using the latest Bitnami WordPress Stack on Amazon Lightsail, Approach A: Bitnami installations using system packages.
When I migrated my website to this new server, the header, footer, theme options went missing on the website. But doing the below solves the issue.
I am not sure if this is the right thing do? or does it affect anything.
If anyone has more knowledge about this, please let me know. Any kind of input will help.
<?php
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/wordpress/');
define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/' );
define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' );
define('WP_CONTENT_URL', WP_HOME . 'wp-content');
define('WP_CONTENT_DIR', realpath(ABSPATH . 'wp-content/'));