Hi,
I have a query regarding the content in the directory of website. I have a website which has certain directories with some html pages and files in it, While opening a page or file, it will show the link like "www.my-domain-name.com/FOLDER/pagename.html or "www.my-domain-name.com/FOLDER/filename.txt" but when someone would try to open the folder in a browser to view the contents in the directory like (http://www.my-domain-name.com/FOLDER/"), I would want him to see a 404 error, PAGE NOT FOUND Error.
Now My Question is
1) Is it possible to do this ?
2) If Yes, then should I redirected the folder root to the Custom Error Page or something ???? Or there is some other way of doing that,,, ???
2) Also Is that way a proper way for securing the content in the directories ?
I have a query regarding the content in the directory of website. I have a website which has certain directories with some html pages and files in it, While opening a page or file, it will show the link like "www.my-domain-name.com/FOLDER/pagename.html or "www.my-domain-name.com/FOLDER/filename.txt" but when someone would try to open the folder in a browser to view the contents in the directory like (http://www.my-domain-name.com/FOLDER/"), I would want him to see a 404 error, PAGE NOT FOUND Error.
Now My Question is
1) Is it possible to do this ?
2) If Yes, then should I redirected the folder root to the Custom Error Page or something ???? Or there is some other way of doing that,,, ???
2) Also Is that way a proper way for securing the content in the directories ?
Comment