I have the below folder structure in my www directory.
The website folder contains all the files that are to be accessed by the users. The include folder contains all the include files.
Currently when someone directly tries to access any file in include or client folder they are able to access them. I placed a .htaccess containing "Deny from All" in the include folder which has stopped users from accessing the files in include and client folder.
But instead of that I want them to be redirected to a file in website folder whenever someone tries to directly access the files in include folder or any subfolder that include contains.
Also, currently I am using this on localhost so kindly let me know such redirect that even later on this website moves to any domain I don;t need to make changes in the .htaccess file.
I hope, I have explained my self here.
Thanks in advance.