htaccess : block dirs with no index
Hi
I was wondering if there's a way of writing an htaccess rule that would block direct access to any directory in the site that doesn't have an "index.php" file
so :
http://www.mysite.com/pdf/mypdf.pdf would work
http://www.mysite.com/pdf/index.php would work if there was an index.php in the directory
but
http://www.mysite.com/pdf/ would redirect to the site root
or am I not approaching this problem in the right way ?
thanks for any help you can give
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks