Skip to content

Instantly share code, notes, and snippets.

@jaywilliams jaywilliams/.htaccess
Last active Jun 7, 2018

Embed
What would you like to do?
Magento 2 SSL Redirect Loop Fix (Apache + Varnish + Nginx)
# Add this to your the Magento .htaccess file located in your docroot
############################################
## Nginx proxy HTTPS Fix for Magento
## Source: https://www.sonassi.com/blog/magento-kb/magento-https-redirect-loop-2
SetEnvIf X-Forwarded-Proto https HTTPS=on
@jaywilliams

This comment has been minimized.

Copy link
Owner Author

commented Jul 21, 2016

This fixes the "This webpage has a redirect loop" error.

@fatmarker

This comment has been minimized.

Copy link

commented Jun 7, 2018

Hot damn! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.