Bug 57412

Summary: rewrite rules causes duplicate requests
Product: Apache httpd-2 Reporter: Mavko Žmak - Žmale <xmak>
Component: mod_rewriteAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: major    
Priority: P2    
Version: 2.4.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Mavko Žmak - Žmale 2015-01-04 15:40:08 UTC
I have this simple Rewrite rule in my .htaccess:

RewriteEngine on
RewriteRule index.php - [L]
RewriteRule .* index.php [L]

This causes a duplicate request to index.php, meaning it's invoked twice when processing the request (I have checked it by writing some debug in php error log) while it should be invoked only once.

I noticed this on my HTTPD version 2.2.29, and then upgraded it to 2.4.10 but the bug still remains.

I tried it on another server with HTTPD version 2.2.25 and in this version it doesn't happen.