PDA

View Full Version : 500 error in .htaccess?


Cirdan7
January 19th, 2008, 04:45 PM
I'm getting a Request exceted the limit of 10 internal redirects due to probably config error. Use LimitInternalRecursion to increase the limit if necessary.

What is causing the problem is my .htaccess that I am using for the Zend Framework.

RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php



The error was because I was messing with the url through and Alias in the apache2.conf

MJN
January 20th, 2008, 07:35 AM
That's because the first redirect results in index.php, which also matches your rule given it doesn't end in js|ico etc hence it redirects again, and again...

Try excluding index.php from the conditions by adding RewriteCond !index.php$ above your RewriteRule.

Mathew