Search code examples
phpwebcoding-styleweb-deploymenteasyphp

I want to put a index.php in every sub directory. Is this a good/bad programming practice?


I don't want the user to see the sub directory structures. So I am thinking of redirecting the user to the homepage whenever they try to access that.


Solution

  • you can just put .htaccess file with Options -Indexes in it in root directory.

    How do I disable directory browsing?