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-httpd-ph

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. >> > > It didn't wor

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

2013-07-28 Thread Joyce Babu
On Sat, Jul 27, 2013 at 10:33 PM, Eric Covener wrote: > Just occurred to me that just NS flag may be enough too. > It didn't work. According to the manual, NS flag will only prevent the rules from being applied on sub requests. > On Sat, Jul 27, 2013 at 11:49 AM, Eric Covener wrote: > > > >

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

2013-07-27 Thread Eric Covener
Just occurred to me that just NS flag may be enough too. On Sat, Jul 27, 2013 at 11:49 AM, Eric Covener wrote: > On Sat, Jul 27, 2013 at 8:20 AM, Joyce Babu wrote: >> When the rule is placed in the VirtualHost context, it works correctly. But >> when it is placed in the Directory context or in a

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

2013-07-27 Thread Eric Covener
On Sat, Jul 27, 2013 at 8:20 AM, Joyce Babu wrote: > 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 My recollection is th