Answers.Body: <p>Answer is provided in the original post and this can be assumed solved.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-29T18:57:56.860Z
Answers.LastActivityDate: 2016-09-29T18:57:56.860Z
Answers.UserDisplayName: Craze Developer
Body: <p>I am posting this in case anyone will encounter this problem. I also reported a potential bug about that. (see here: <a href="https://github.com/craftcms/cms/issues" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues</a>)</p>
  
  <p>When you start to suddenly get redirection loops with HTTP-302 redirects to our own page, you might want to check your loginPath value in general.php.</p>
  
  <p>After we spent hours investigating into the usual .htaccess and other places for redirection loops, we eventually figured out, that loginPath set to '/' will cause that behaviour.</p>
  
  <p>We wanted to redirect users to the homepage if they were not logged in and tried to access a page that required a login.</p>
  
  <p>Our setting was:</p>
  
  <pre><code>'loginPath' =&gt; '/'
  </code></pre>
  
  <p>which proved to cause the redirection loop.</p>
  
  <p>The correct setting instead was:</p>
  
  <pre><code>'loginPath' =&gt; ''
  </code></pre>
  
  <p>I hope this saves somebody else from future pain :)</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-09-29T19:12:07.387Z
Comments.Text: It's clear that this is a bug report, and not a question to be answered. Please report all bugs directly to support@craftcms.com
Comments.UserDisplayName: Lindsey D
Tags: <config><redirect><loop><https>
Title: Page redirects permanently to itself
ThreadText: # Page redirects permanently to itself
  
  (Asked by: username_0 on 2016-09-29)
  
  I am posting this in case anyone will encounter this problem. I also reported a potential bug about that. (see here: <https://github.com/craftcms/cms/issues>)
  
  When you start to suddenly get redirection loops with HTTP-302 redirects to our own page, you might want to check your loginPath value in general.php.
  
  After we spent hours investigating into the usual .htaccess and other places for redirection loops, we eventually figured out, that loginPath set to '/' will cause that behaviour.
  
  We wanted to redirect users to the homepage if they were not logged in and tried to access a page that required a login.
  
  Our setting was:
  
  ```
  'loginPath' => '/'
  
  ```
  
  which proved to cause the redirection loop.
  
  The correct setting instead was:
  
  ```
  'loginPath' => ''
  
  ```
  
  I hope this saves somebody else from future pain :)
  
  **Tags:** config, redirect, loop, https
  
  > **Comments:**
  > **username_1**: It's clear that this is a bug report, and not a question to be answered. Please report all bugs directly to support@craftcms.com  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-09-29. Score: 0
  
  Answer is provided in the original post and this can be assumed solved.
  
  
  ---
  
  