Re: [us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-05 Thread Dennis Jacobfeuerborn
On 11/05/2010 05:08 AM, Eric Covener wrote: On Thu, Nov 4, 2010 at 10:45 PM, Dennis Jacobfeuerborn wrote: ErrorDocument 404 /_disabled/index.html RewriteEngine on RewriteRule !/_disabled/ /_force_404_ The idea was to use the rewrite rule to rewrite any access to a non-existing page and then h

Re: [us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-04 Thread Eric Covener
On Thu, Nov 4, 2010 at 10:45 PM, Dennis Jacobfeuerborn wrote: > ErrorDocument 404 /_disabled/index.html > RewriteEngine on > RewriteRule !/_disabled/ /_force_404_ > > The idea was to use the rewrite rule to rewrite any access to a non-existing > page and then have the ErrorDocument directive catch

Re: [us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-04 Thread Dennis Jacobfeuerborn
ErrorDocument 404 /_disabled/index.html RewriteEngine on RewriteRule !/_disabled/ /_force_404_ The idea was to use the rewrite rule to rewrite any access to a non-existing page and then have the ErrorDocument directive catch that but instead of a custom error page I only get the default message

Re: [us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-04 Thread Igor Cicimov
Post the rewrite rule here. Igor On Nov 5, 2010 1:11 PM, "Dennis Jacobfeuerborn" wrote: Hi, I'm trying to find a way to always generate a 404 error using htaccess when a directory is accessed and with mod_autoindex enabled. That is when I access http://server/directory/ I want to get a 404 erro

[us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-04 Thread Dennis Jacobfeuerborn
Hi, I'm trying to find a way to always generate a 404 error using htaccess when a directory is accessed and with mod_autoindex enabled. That is when I access http://server/directory/ I want to get a 404 error instead of an auto generated index. I tried doing this with a RewriteRule but the aut