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

Subscribe
Share

Thanks for the Advice,

I’ve decided to purge wordpress and start again from scratch


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.

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