Score:0

.htaccess too many redirect error to the same page url

cn flag

I have a very weird too many redirect error on apache server The site was working for a long time, and there was no change. I woke this morning in this happened.

Apache is working, but from a specific folder it cannot serve even a html file. Browser showing: This page isn’t working redirected you too many times.

I tried to replace to .htaccess of maintenance mode which worked in the past, but even this causing the error.

.htaccess:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^members/site/maintenance\.html$
RewriteRule ^(.*)$ https://example.com/members/site/maintenance.html [R=307,L]

I checked the site with Redirect Path This is what I see:

https://example.com/members/site/maintenance.html
307: Temporary redirect to https://example.com/members/site/maintenance.html
https://example.com/members/site/maintenance.html
307: Temporary redirect to https://example.com/members/site/maintenance.html
https://example.com/members/site/maintenance.html
307: Temporary redirect to https://example.com/members/site/maintenance.html
:
:
and so on

Any idea what is causing it and how to fix?

djdomi avatar
za flag
what happene when you remove it?
justadev avatar
cn flag
It was a database issue. Your answer pointed my to the right direction. Thanks!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.