Please help ... htaccess

Discussion in 'Apache' started by Ukuser, May 27, 2010.

  1. #1
    Hi Folks,

    I need a htaccess file to do the following:

    1) Stop all files being opened in a particular folder
    And then
    2) Take the filename of the requested file and pass it as a a variable to a php file (i.e. filemanager.php?file=$1)

    I've had a couple of goes at getting it right but can't quite seem to do it. It doesn't need to be restricted to certain types of files, basically everything gets stopped from being opened and then redirected to this script.

    The idea is that the PHP script will manage permissions for all files in that folder.

    Many thanks

    A
     
    Ukuser, May 27, 2010 IP