{"id":50,"date":"2020-07-27T18:13:37","date_gmt":"2020-07-27T18:13:37","guid":{"rendered":"https:\/\/datatype.co.in\/blog\/?p=50"},"modified":"2022-12-20T05:45:01","modified_gmt":"2022-12-20T05:45:01","slug":"how-to-fix-too-many-redirects-issue-in-wordpress-wp-admin","status":"publish","type":"post","link":"https:\/\/datatype.co.in\/blog\/how-to-fix-too-many-redirects-issue-in-wordpress-wp-admin\/","title":{"rendered":"How to Fix Too Many Redirects Issue in WordPress wp-admin"},"content":{"rendered":"\n<p>It may happen due to improper url configuration while migrating from http to https. Here is how you can fix this issue.<\/p>\n\n\n\n<p>1. Update WordPress Address (URL)  and Site Address URL:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"426\" src=\"https:\/\/datatype.co.in\/blog\/wp-content\/uploads\/2020\/07\/Image-8.png\" alt=\"WordPress Too Many Redirects\" class=\"wp-image-53\" srcset=\"https:\/\/datatype.co.in\/blog\/wp-content\/uploads\/2020\/07\/Image-8.png 773w, https:\/\/datatype.co.in\/blog\/wp-content\/uploads\/2020\/07\/Image-8-300x165.png 300w, https:\/\/datatype.co.in\/blog\/wp-content\/uploads\/2020\/07\/Image-8-768x423.png 768w, https:\/\/datatype.co.in\/blog\/wp-content\/uploads\/2020\/07\/Image-8-710x391.png 710w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<p> 2. Add the following piece of code in wp-config.php file :<\/p>\n\n\n\n<pre class=\"wp-block-code prettyprint\"><code>if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';<\/code><\/pre>\n\n\n\n<p>This should fix the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It may happen due to improper url configuration while migrating from http to https. Here is how you can fix this issue. 1. Update WordPress Address (URL) and Site Address&nbsp;[ &hellip; ]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,6],"tags":[38,40,39,36],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-php","category-wordpress","tag-wordpress-admin-page-not-loading","tag-wordpress-https-issue","tag-wordpress-mixed-content-issue","tag-wordpress-wp-admin-too-many-redirects","list-style-post"],"_links":{"self":[{"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":9,"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions\/861"}],"wp:attachment":[{"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datatype.co.in\/blog\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}