Ecka
2005-02-11 23:22:44 UTC
Hi,
I want to hide the listing of a directory but allow access to all PDF files
if a link is provided in another page.
I created an .htaccess file and added "Options -Indexes" which worked fine
as far as preventing a directory listing but this also disallowed me from
listing the whole filename. I then added the following:
<FilesMatch "*.pdf">
Allow from All
</FilesMatch>
But I still can't list those files.
So, instead I've just added "IndexIgnore *" to my .htaccess file which
allows me to call on the PDFs by filename but lists nothing when you perform
a listing of the directory. How do I achieve what I was trying to do
initially?
Cheers,
Eric
I want to hide the listing of a directory but allow access to all PDF files
if a link is provided in another page.
I created an .htaccess file and added "Options -Indexes" which worked fine
as far as preventing a directory listing but this also disallowed me from
listing the whole filename. I then added the following:
<FilesMatch "*.pdf">
Allow from All
</FilesMatch>
But I still can't list those files.
So, instead I've just added "IndexIgnore *" to my .htaccess file which
allows me to call on the PDFs by filename but lists nothing when you perform
a listing of the directory. How do I achieve what I was trying to do
initially?
Cheers,
Eric