I started using letsEncrypt for some time now for couple of my websites. When you run letsencrypt to turn ssl on for your websites, it gives you the option to force redirect all websites to https. Of course I opted for that. After this, one of my wordpress hosted site broke with “too many 301 redirect errors“. I kept on troubleshooting assuming issue with wordpress or its installed plugins.
After 3 long hours of troubleshooting, I looked at the apache ssl conf for the effected site. To my surprise, I saw a 301 redirect line both in non-ssl as well as ssl conf file. For sure this was not correct.
Solution: Removed the 301 redirect on ssl conf file for the effected domain and all worked. fine.