Question

Redirect Loop on Wordpress site with IP adress as Domain name

To preface my problem, I am using my droplets IP as site address. Nothing have become a problem for this 3 month, until 2 days ago. Suddenly my site can’t be opened with ERR_Too_Many_Redirect message.

Using link redirect trace i’ve found that my site seems to keep redirecting into itself. Because it’s not the first time i came across this problem, but it’s the first time when using DigitalOcean VPS, I usually just change the content of wp-config to fix this problem.

But because this seems to have no effect in this issue I have come to ask for some advice.

This is what I’ve done up to this point -clearing cache, cookies etc from my browser and Wordpress -Fix wordpress url through wp-config -change, deleting, and make a new .htaccess file -deactivating and deleting plugins -restore the droplet from pre-incident backup

It might have been http to https redirect loop. But I doubt it because I make the redirect 3 months ago and never come to any problem. and while i just renew my SSL Mid-April from Zero-SSL. I don’t think it will be an issue.

Any advice is appreciated, thank you

Show comments

Submit an answer


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!

Sign In or Sign Up to Answer

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.

Accepted Answer

Eyy @shopramai448,

This problem is very typical in Wordpress, the ERR_TOO_MANY_REDIRECT sometimes originates by:

  • Mistakes with Plugin Cache Optimization ( upgraded? )
  • Home page and site URL with configuration problems
  • Error in .htaccess file ( has been recently modified? )
  • HTTPS configuration is not correct

Probably some file have been modified by some automated script and perhaps the current configuration has been altered.

Have you checked the server logs?

Let me know,

Sergio Turpín

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel