Reynier Perez Mira wrote:
You can add an exception before it to avoid this RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.phpWell, now my .htaccess file is this: php_flag magic_quotes_gpc off php_flag register_globals off RewriteEngine On RewriteBase /webacula RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php But I still having the same error: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Try increasing your RewriteLogLevel (something like RewriteLogLevel 3) in your apache config (you may have to set RewriteLog also). Then look through the log to see exactly how it is rewriting the request. As a matter of fact, the rewrite worked for me without the RewriteCond set (since RewriteRule defaults to an internal rewrite, apache might not reprocess the rewrite rules because they are in an .htaccess file versus the apache config). Maybe you have other rewrite rules somewhere else?
The above .htaccess directives work for me if I use them in the following settings
<VirtualHost 127.0.0.1:80> ServerName foo.localhost DocumentRoot /var/www/foo </VirtualHost> /var/www/foo/webacula/.htaccess /var/www/foo/webacula/index.php /var/www/foo/webacula/firefox.png Works - Request to http://foo.localhost/webacula/firefox.png Works - Request to http://foo.localhost/webacula/ Works - Request to http://foo.localhost/webacula/index.php -- Justin Pasher --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx