Apache Server configuration support - Access to a dir only with special url (htaccess)

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > April 2004 > Access to a dir only with special url (htaccess)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Access to a dir only with special url (htaccess)
Sebastian Koch

2004-04-30, 3:33 am

Hello,

I'm looking for a way to restrikt the access to a dir using RewriteEngine in
htaccess file.

Structure:
/all/files/test.pdf
/all/sessions/mysession/

I want to deny direct access (http://domain.de/all/files/test.pdf) but allow
the access through session folder
(http://domain.de/all/sessions/mysession/test.pdf).

Is there a way to do this with .htaccess files

The folders inside /all/sessions/ and the .htaccess file I create with a php
script and
then I give the user the url to it.

Many thanks for your help!!! (I hope my english is not to bad to
understand.)

Sebastian Koch


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com