By putting the option-indexes directive in the htaccess. Can I see it?

0

I want the directory tree to be visible from the browser, my web.  That's why I'll create the htaccess with option-indexes.  My question is:

I will see them when I want .. entering my cpanel right?

thanks to those who answer !!

    
asked by Lita San 19.05.2016 в 17:48
source

2 answers

1

If you define Option -Indexes it is only used to tell the Apache server not to list the directory when it does not find an index file (defined as Index , normally they are index.html e index.php ).

If your Cpanel has read permission in the directory you can list it without problem, since it has nothing to do with the list that Apache does if it does not find a file to serve.

    
answered by 19.05.2016 в 17:57
0

Yes, you will have access from cPanel and ftp. A good custom apart from configuring the .htaccess is to always have an index.html or index.php in each directory or subdirectory, even if the index does not contain anything

by custom I put an index.php that says:

<?php header( 'Location: /' );

like that, nothing more, without closing with? >

    
answered by 21.05.2016 в 11:27