https://issues.apache.org/bugzilla/show_bug.cgi?id=47475

           Summary: mod_rewrite: add flag to break the loop
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Consider following rules:

RewriteEngine On
RewriteBase /
RewriteRule ^(.*/)?index\.php$ $1 [R=301,L]
RewriteRule ^(.*)$ index.php?page=$1 [L]

These rules results in infinite loop, where someurl.com/?page= redirects itself
to the same url. It will be good to add additional flag to break this loop,
because [L] does not do it - mod_rewrite starts processing ruleset from
beginning.

BTW, I know that in many cases it is possible to use RewriteCond to avoid it,
but sometimes it is really tricky.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to