the .htaccess
method will work only for apache and not even for all possible configurations of it, and empty index.php
/index.html
are to prevent directory listing, so the only proper solution is to check if ABSPATH
is defined.
the .htaccess
method will work only for apache and not even for all possible configurations of it, and empty index.php
/index.html
are to prevent directory listing, so the only proper solution is to check if ABSPATH
is defined.