I want to deny direct access to all .php
files except one: index.php
The only access to the other .php
files should be through php include
.
If possible I want all files in same folder.
UPDATE:
A general rule would be nice, so I don't need to go through all files. The risk is that I forget a file or line.
UPDATE 2:
The index.php
is in a folder www.myadress.com/myfolder/index.php
I want to deny access to all .php
files in myfolder
and subfolder to that folder.