mod_rewrite: maximum number of internal redirects reached

Permalink
I have a problem with our site, we can view the site ok and I have got it all working and just recently we have a problem when we try to edit a content block. It gets stuck loading up and just shows

Add Image
Add File
Insert Link to Page
Customize Toolbar


Cancel Update

With the content area to edit in a small area with none of the wysiwyg options.... this means its impossible for my client to edit the site

We have looked at the log files and this is the only error message we are getting

[Mon Aug 15 22:46:03 2011] [error] [client 86.166.95.88] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.


We have tried it with modrewrite on and off using the .htaccess file and deleting that file to see if either one helps.. cant solve it and cant find a way to get the wysiwyg editing function back

 
Steevb replied on at Permalink Reply
Steevb
Hi,

Don't play with .htaccess unless you have to.

Are you sure your server/hosting provider is playing properly?

Quite a few 'Hosters' do need careful handling...

Have you tried clearing the browser and C5 cache?

Which C5 version are you using?
dreamstudio replied on at Permalink Reply
well I think it is the host but we have our own hosting which works fine on concrete and on this client we have HAD to use this host. Everything worked fine in the beginning then all of a sudden it stopped working and we hadn't changed anything, however we have to find out why before saying " oh its the host" and everything I have done to fix it hasnt worked.

I upgraded to the latest version of concrete yesterday and all other errors stopped but still get the maximum redirects error.

I am now going to set the site up on our server using the same files and database and see if it still has the error... if it goes then I can go back to my client and say " its the host" then leave it upto them to decide... if it still has the error... help.......
JohntheFish replied on at Permalink Reply
JohntheFish
The standard C5 rewrite rules are straight forward and should only be a single pass. Apache has the mod_rewrite limit to prevent infinite loops when something goes wrong with the rules.

Maybe there is something in the .htacces mod_rewrite that is allowing an infinite loop because of the way a path is specified. It won't necessarily be a site page, it could be a graphic that triggers a loop.

Or maybe something within your C5 site is redirecting from within the pages and causing a loop of mutual recursion between C5 and the rewrite rules.

I have experienced problems with "RewriteBase" on my development system, but not online. You can also get looping of error pages if a 404 or 403 page is missing (and you can break such loops with further tricks in the rewrite rules).