{"id":26123,"date":"2023-02-20T08:00:23","date_gmt":"2023-02-20T08:00:23","guid":{"rendered":"http:\/\/localhost\/helpold\/?p=26123"},"modified":"2023-02-20T08:00:23","modified_gmt":"2023-02-20T08:00:23","slug":"whats-too-many-redirect-and-how-to-solve-it","status":"publish","type":"post","link":"https:\/\/www.arvancloud.ir\/help\/en\/whats-too-many-redirect-and-how-to-solve-it\/","title":{"rendered":"What\u2019s Too Many Redirect and how to solve it?"},"content":{"rendered":"<p style=\"text-align: left\">This error occurs when the browser is trying to open your website and different locations are sent to the browser and in fact the browser doesn\u2019t detect which location is correct and repeatedly tries to fix the location. After 16 times of trying, the error shows up.<\/p>\n<p style=\"text-align: left\">In other words, the browser in in a loop that repeatedly sent to different address and it cannot find the correct location and address.<\/p>\n<h3 style=\"text-align: left\"><\/h3>\n<h3 style=\"text-align: left\"><strong>When does this error occur when using ArvanCloud Services?<\/strong><\/h3>\n<p style=\"text-align: left\">1- When you activate HTTPS settings for your website, you need to consider a few scenarios:<\/p>\n<p style=\"text-align: left\">1.1- IF you\u2019re only responding the requests from your web server in HTTP, you need to disable the \u201cSecure connection of HTTPS with Origin Server\u201d in this page, so that the requests sent from ArvanCloud to your server are done with port 80 and HTTP protocol.<\/p>\n<p style=\"text-align: left\">1.2. IF you\u2019re only responding the requests from your web server in HTTPS, you need to enable the \u201cSecure connection of HTTPS with Origin Server\u201d , so that the request sent fro ArvanCloud to your origin server are sent with port 443 and HTTPS protocol.<\/p>\n<p style=\"text-align: left\">1.3. If you\u2019re responding to the requests from your web server in both HTTPS and HTTPS, set the \u201cSecure connection of HTTPS with Origin Server\u201d setting on automatic mode so that the requests sent to your origin server will be matched with the same protocol requested from your users.<\/p>\n<p style=\"text-align: left\">This means if a user sends the request in HTTP, ArvanCloud will return the requests in HTTP to your web server and \u00a0if the user sends the request in HTTPS, ArvanCloud will return the requests in HTTPS.<\/p>\n<p style=\"text-align: left\">2- When you have enabled the \u201cTransfer domain to www\u201d in your CDN setting, and in your web server you have made a setting that your website is uploaded without WWW and you redirect any request including WWW to requests without WWW.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This error occurs when the browser is trying to open your website and different locations are sent to the browser and in fact the browser doesn\u2019t detect which location is correct and repeatedly tries to fix the location. After 16 times of trying, the error shows up. In other words, the browser in in a [&hellip;]<\/p>\n","protected":false},"author":79,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"r1_post_views_count":"635","feedback_yes":"","feedback_no":"","ads_id_sidebar":"","ads_id_content":"","footnotes":""},"categories":[249,273],"tags":[],"class_list":["post-26123","post","type-post","status-publish","format-standard","hentry","category-cdn","category-cdn-troubleshooting"],"lang":"en","translations":{"en":26123},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/posts\/26123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/users\/79"}],"replies":[{"embeddable":true,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/comments?post=26123"}],"version-history":[{"count":0,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/posts\/26123\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/media?parent=26123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/categories?post=26123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/tags?post=26123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}