I'm starting with AWS deployment, mostly out of necessity, with a Wordpress install on Elastic Beanstalk, Elastic Filesystem, Amazon RDS (MariaDB) and Route 53 plus certificates. I followed a couple for starting up and keeping everything together, and so far I've done quite well, but now I'm facing a couple of issues.
- After setting Route 53 and a certificate, I wanted to force HTTPS, so I did what I used to do on my WP installs: install Really Simple SSL. So far, it went well. Then I deployed a couple of changes through EB CLI, and I went on a redirect loop hell that forced me to remove that plugin. I tried this a couple of times, with the same result.
- I found out that redeploying Wordpress resets some configurations that are supposed to be saved on the database. So far, I noticed permalinks, language and other minor settings are reset after deploying a new version of the app. And maybe this is causing the redirect loops I mentioned.
Looking for a solution, I came across this answer which I have implemented, but I can't tell if it's actually working or not.
What can I do?
Update
I tried the solution proposed by this answer to no avail, the issue replicated. Further searching got me to find someone with exactly the same issue as mine.
From this I thought that maybe Really Simple SSL is the culprit, and started to look for an alternative without using a plugin. So I landed to this AWS Developer Forums thread where some things went kinda well, as I managed to get the homepage and WP Admin to be redirected to HTTPS. But the rest of the site doesn't.