1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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