"Index Of" Description
Not sure if this is in the correct forum, so MOD's please move it if it isn't, thanks.
I have on my server, several directories on my domain, each hosting many PDF's for my customers; Each PDF is password protected. When my customers access the directory, they see their PDF's and each has a Name, Last Modified, Size and Description Column. How do I get the Description Column to show the description of the pdf file? I have entered descriptions everywhere all over the PDF but I still cant get it to show.
Thanks.
-
Hello :) You will need to add the "AddDescription" values in the .htaccess file. EX: AddDescription "The Test Image" test.jpg
Thank you.0 -
Sounds simple enough. I've never made a HTAccess file before, is this all I need to put in the file bearing in mind, it'll only ever contain pdf's and the htaccess file itself? Sorry for asking, but I'm a complete newbie. 0 -
Yes, that is the only line you will need to place in the file assuming you only want to add a description to a single file. You must add that entry in the .htaccess file for each file you want to create a description for. Thank you. 0 -
I've just tried it and it doesn't appear to work. Thanks for your help anyway. I'll have to do without. 0 -
Did you notice that the filename is .htaccess ? Starting with a dot and lowercase. 0 -
Yes, that how I named the file, I already knew it started with a dot and in LC. Does the server have to have anything enabled for this to work? 0 -
The AutoIndex Apache module is required, however that should be compiled by default: # httpd -l|grep autoindex mod_autoindex.c
Thank you.0 -
[quote="cPanelMichael, post: 1500101">The AutoIndex Apache module is required, however that should be compiled by default: # httpd -l|grep autoindex mod_autoindex.c
Thank you.
I added that to the .htaccess file but it's still not allowing the description to be shown.0 -
You should not add that to the .htaccess file. That's the output of a command that is ran via SSH. You may want to consult with your hosting provider for additional assistance. Thank you. 0 -
[quote="CheesyBeanz, post: 1500571">I added that to the .htaccess file but it's still not allowing the description to be shown.
If you added that to the .htaccess file you should get a 500-error. If you didn't get the error it must mean that .htaccess is disabled.0 -
[quote="quietFinn, post: 1500621">If you added that to the .htaccess file you should get a 500-error. If you didn't get the error it must mean that .htaccess is disabled.
I didnt get any error, I was able to view the files as normal but without the description. Does my hosting provider have to enable it or can I do it cpanel?0 -
Please contact your hosting provider for assistance to have them check why it's not working as intended for you. Thank you. 0
Please sign in to leave a comment.
Comments
12 comments