I have a site that allows download or streaming of mp3 files. All the mp3 files are located in a sub-directory called "mp3". An error I'm getting from google (and something I'd like to avoid) is that when the directory itself is called in a browser like this
http://www.mysite.com/mp3/
it brings up the usual (and correct) error that the directory contains no index file. I know how to make a php file that redirects the user to whatever page I want, and I know that I could make an index.html file that is 301 redirected to whatever page I need, but is there a better way to handle this that is better for google? I could mark the directory as forbidden in the robots.txt file, but is there a better way to handle this that also looks more professional to the end user?