AWS WordPress: CSS and JS not Loading in WordPress Website after Migrating or Restarting the EC2 instance:
When an EC2 instance without Elastic IP is stopped and then started a new IP address is allocated to the instance. The CSS and JS files in the instance will be connected to the old IP. That's the reason the website / blog loads without CSS. To fix this we have to add couple of lines of code to functions.php file and restart the web server.