You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/07/30 18:29:08 UTC

[Bug 53929] RewriteRule of "^$" broke between 2.2.21 and 2.4.2

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

--- Comment #1 from Joyce Babu <co...@joycebabu.com> ---
I am also experiencing this issue. The issue is caused by the DirectoryIndex
directive. mod_dir is not respecting the result of the rewrite execution. If
DirectoryIndex is set to disabled, it starts working correctly. Similarly,
using SetHandler also resolved the problem.

Unfortunately, since both the directives are inherited by files/sub
directories, it is not a proper solution.

I was able to work around it by setting an environment variable using the
mod_rewrite, and Disabling DirectoryIndex for those requests.

    RewriteEngine on 
    RewriteRule ^$ /test/home.php [NC,QSA,END,E=IS_DIR_INDEX:1] 

    <If "env('IS_DIR_INDEX') == 1"> 
    SetHandler default_handler 
    </If> 

There is a related issue which is present in 2.2 too. DirectoryIndex directive
does not pass requests for directories to FallbackResource, if the index file
is not found.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org