Question

How can i solve this error ERR_TOO_MANY_REDIRECTS ?

Hi Guys,

I am facing an issue ERR_TOO_MANY_REDIRECTS which keep on coming after some time in chrome browser. I have followed the steps as suggested through this link (https://www.digitalocean.com/community/questions/migration-failed-badly-redirect-loop-error-server) and somewhat the issue was resolved as the same error now doesn’t occur in another browser.
Kindly suggest what further changes i can do to make the website work flawless.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@rohitpahuja Firefox has a different way it protects against loops, so instead of showing an error, it only does a single loop (similar to a page reload) - I actually think it generates a warning in the developer console. It’s different browsers, so they have different internals and how they handle things.

@rohitpahuja

Change the *:80 configuration to this:

<VirtualHost *:80>
        ServerName ninosdreams.com
        ServerAlias www.ninosdreams.com
        Redirect permanent / https://ninosdreams.com/
</VirtualHost>

And post your configuration for HTTPS.

The reason why I’m asking is because I’m getting a return from two IPs, but I don’t know how Amazon hosting works, so you might need to ask them.

ninosdreams.com.	59	IN	A	13.126.120.235
ninosdreams.com.	59	IN	A	35.154.90.209

@rohitpahuja Does it only happen to you or everyone using Chrome?

@rohitpahuja If you get an 500 error, then it should be in your error log. Check that you haven’t modified the default path in you Vhost, otherwise it’s normally located in /var/log/apache2/error.log.

Hi @rohitpahuja

Are you using a CMS like WordPress? Can you post your Apache Vhost configuration - as well as any .htaccess.