.htaccess - 500 server error when denying access to subdirectory -
i trying deny direct access subdirectory using .htaccess:
# deny direct access <directory "/cron"> deny </directory>
the above code in .htaccess file of public_html directory. subdirectory trying block located @ public_html/cron.
when enter address within /cron folder directly in browser, 500 server error instead of 403. idea why?
you can't use <directory>
in .htaccess
files.
http://httpd.apache.org/docs/2.2/en/mod/core.html#directory
context: server config, virtual host
use in /cron/.htaccess
file:
deny
Comments
Post a Comment