Sorry for the my noob questions, i'm sure their's an answer out there but i'm not sure what to search. I was hoping to find out what the best way to redirect someone to my homepage when they access a directory in the browser instead of a file.
for example:
When i access http://example.com/testdir it will give me a ftp like screen instead i want to redirect them to http://example.com unless they access an actual file i.e. http://example.com/testdir/test.html to which i want to show the html.
Also is their any security danger leaving it like this?
Thanks!