PDA

View Full Version : Help needed with .htaccess redirects



lukemb
11 Jan 2011, 05:39 AM
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 :xeye:

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

lukemb
10 Feb 2011, 03:13 AM
Sorry to bump this up but I'm pretty desperate! Still struggling after many .htaccess attempts.