httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Rossignoli" <>
Subject [users@httpd] mod_rewrite infinite loop
Date Tue, 21 Jan 2003 12:07:35 GMT
usually I use this trick to avoid infinite loop when parsing some rules:

This is only an example to demontrate what happens:

# /.htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} !/sub_dir [NC]
RewriteRule ^(.*)$ /sub_dir/$1 [L]

I had to add the RewriteCond to avoid an "infinite loop" from the rewrite
parser because I used (.*) in the line three.

Is it the right approach or is there some flag that I can add to avoid to
use the RewriteCond line ?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message