hello all i`m php developer and i try to use new method in my work i was divide all modules and put it in specific folder .my question how i can protect folder
ex:
www.test.com/cms/users/add.php
i want if some one try write in url
www.test.com/cms/users/
redirect too
www.test.com/cms/login.php
how i can please
I use this example in all my websites. On the line that is commented, you can see that I’m denying direct access to those folders (application, modules, system), just have to change for your own.