{"id":412,"date":"2016-03-21T11:23:12","date_gmt":"2016-03-21T10:23:12","guid":{"rendered":"http:\/\/btrnaidu.com\/?p=412"},"modified":"2016-03-21T11:23:12","modified_gmt":"2016-03-21T10:23:12","slug":"letsencrypt-and-301-redirect","status":"publish","type":"post","link":"https:\/\/btrnaidu.com\/index.php\/letsencrypt-and-301-redirect\/","title":{"rendered":"LetsEncrypt and 301 redirect"},"content":{"rendered":"<p>I started using <a href=\"https:\/\/letsencrypt.org\/\" target=\"_blank\">letsEncrypt<\/a> for some time now for couple of my websites. \u00a0When you run letsencrypt to turn ssl on for your websites, it gives you the option to force redirect all websites to https. \u00a0Of course I opted for that. \u00a0After this, one of my wordpress hosted site broke with &#8220;<span style=\"color: #ff0000;\">too many 301 redirect errors<\/span>&#8220;. \u00a0I kept on troubleshooting assuming issue with wordpress or its installed plugins.<\/p>\n<p><!--more--><\/p>\n<p>After 3 long hours of troubleshooting, I looked at the apache ssl conf for the effected site. \u00a0To my surprise, I saw a 301 redirect line both in <em>non-ssl<\/em> as well as <em>ssl<\/em> conf file. \u00a0For sure this was not correct.<\/p>\n<p>Solution: \u00a0Removed the 301 redirect on ssl conf file for the effected domain and all worked. fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I started using letsEncrypt for some time now for couple of my websites. \u00a0When you run letsencrypt to turn ssl on for your websites, it gives you the option to force redirect all websites to https. \u00a0Of course I opted for that. \u00a0After this, one of my wordpress hosted site broke with &#8220;too many 301 &hellip; <a href=\"https:\/\/btrnaidu.com\/index.php\/letsencrypt-and-301-redirect\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LetsEncrypt and 301 redirect<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,140,139],"tags":[144,142,143,141],"class_list":["post-412","post","type-post","status-publish","format-standard","hentry","category-general","category-letsencrypt","category-wordpress","tag-301-redirect-wordpress","tag-301-ssl-redirect","tag-301-wordpress-redirect","tag-letsencrypt"],"_links":{"self":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":2,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/412\/revisions"}],"predecessor-version":[{"id":414,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/posts\/412\/revisions\/414"}],"wp:attachment":[{"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/categories?post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/btrnaidu.com\/index.php\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}