I having a few problems with .htaccess and redirects. I have a area where i keep all my banners and images I use on forums:
Now I need the files in there to be linked to, but I want to deny a directory listing. using
Options -indexes in .htaccess works fine but then I thought instead of just getting a 403 error, why not redirect the request to www.mysite.net
This is where my problem is.
I setup a forbidden.html and that worked.
I then used .htaccess to
Redirect forbidden.html http://mysite.net
but the redirect did not work. I just kept getting the 403 error. I also tried putting a .htaccess in mysite.net/forums/avatars but again the redirect did not work.