Re: [users@httpd] Re: Mod_rewrite END flag does not work for directory index

2013-07-28 Thread Joyce Babu
I have worked around by setting an environment variable RewriteEngine on RewriteRule ^$ /test/home.php [NC,QSA,END,E=IS_DIR_INDEX:1] FallbackResource /test/fallback.php SetHandler default_handler On Sun, Jul 28, 2013 at 1:21 PM, Joyce Babu wrote: > When SetHandler application/x-ht

Re: [users@httpd] Re: Mod_rewrite END flag does not work for directory index

2013-07-28 Thread Joyce Babu
When SetHandler application/x-httpd-php is used, all files (including images) are served as text/html. On Sun, Jul 28, 2013 at 1:05 PM, Joyce Babu wrote: > > On Sat, Jul 27, 2013 at 10:33 PM, Eric Covener wrote: > >> Just occurred to me that just NS flag may be enough too. &

Re: [users@httpd] Re: Mod_rewrite END flag does not work for directory index

2013-07-28 Thread Joyce Babu
d maybe see if ForceType or SetHandler makes some kind of > > difference if it's active on that context? > SetHandler application/x-httpd-php worked. The file is being served correctly, even though a sub request is still being issued for the directory index file. Should I report this as a bug in mod_dir/mod_rewrite? Thanks, Joyce Babu

[users@httpd] Re: Mod_rewrite END flag does not work for directory index

2013-07-27 Thread Joyce Babu
When the rule is placed in the VirtualHost context, it works correctly. But when it is placed in the Directory context or in an .htaccess file, the request is mapped to the FallbackResource. http://apaste.info/12Cw

[users@httpd] Mod_rewrite END flag does not work for directory index

2013-07-27 Thread Joyce Babu
[rid#2a58b20/initial] [perdir /var/www/vhosts/test/] strip document_root prefix: /var/www/vhosts/test/test.html -> /test/test.html [...] 10.0.2.2 - - [localhost.dev/sid#2532c00][rid#2a58b20/initial] [perdir /var/www/vhosts/test/] internal redirect with /test/test.html [INTERNAL REDIRECT] I hav