Bug 57412 - rewrite rules causes duplicate requests
Summary: rewrite rules causes duplicate requests
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_rewrite (show other bugs)
Version: 2.4.7
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-04 15:40 UTC by Mavko Žmak - Žmale
Modified: 2015-01-04 15:40 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.