php - Customizing 403 error messages -
i've set .htaccess file in directory not want users go,
.htaccess file:
deny errordocument 403 /upload/misc/403.php
this not prevents users going /uploads/ directory, child directories want them go such site.com/uploads/1/. there fix this, or rather way can make 403 error parent directory, not sub-directories? thanks.
you can put .htaccess file in each sub-directory , allow all
. .htaccess
files in child directories take precedence on parent directories.
you might able use file match allow
if know specific pattern.
you instead of using errordocument
, bootstrap files in /uploads/
php file displays error using mod_rewrite. use rewritecond skip sub directories. not write 403 error logs.
Comments
Post a Comment