Report this

What is the reason for this report?

How can i solve this error ERR_TOO_MANY_REDIRECTS ?

Posted on July 7, 2017

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.



This textbox defaults to using Markdown to format your 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

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 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.

Hi @rohitpahuja

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.