anirban.at.web
anirban.at.web

Reputation: 359

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.

Upvotes: 1

Views: 175

Answers (1)

Alex Babak
Alex Babak

Reputation: 489

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

How do I disable directory browsing?

Upvotes: 3

Related Questions