Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

err_too_many_redirects when forcing https #103

Closed
pheliperocha opened this issue Dec 7, 2016 · 1 comment
Closed

err_too_many_redirects when forcing https #103

pheliperocha opened this issue Dec 7, 2016 · 1 comment

Comments

@pheliperocha
Copy link

When I use the rewrite to https

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{HTTPS} !=on
   RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

It return err_too_many_redirects error

And when I check the network tab in chrome developer tools I see has many 302 redirects..

I solve the problem change RewriteCond %{HTTPS} !=on to RewriteCond %{HTTP:X-Forwarded-Proto} =http and now It's all ok

@XhmikosR
Copy link
Member

XhmikosR commented Sep 1, 2017

Yup, it's a known issue and will be fixed by #84. See also #52.

@XhmikosR XhmikosR closed this as completed Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants