Sorry to bump this up but I'm pretty desperate! Still struggling after many .htaccess attempts.
Hi all,
Having a bit of a crisis with an issue I have already solved once - and subsequently lost the piece of code that worked.
I am storing resources in a resources directory (namely pdfs / ppt and various others) which are accessed by a PHP file once the file has checked whether an authorised user is logged in. The PHP then uss fpassthru to prompt a download.
I had a .htaccess file preventing all direct access to the 'resources' folder, which I uploaded for testing, before deleting without backing up
Please could someone help me out with this task, again it simply prevented any direct access to html and any other files within a directory, and redirected the user to the homepage to login.
Thanks in advance,
Luke
Sorry to bump this up but I'm pretty desperate! Still struggling after many .htaccess attempts.