Skip to main content

"Index Of" Description

Comments

12 comments

  • cPanelMichael
    Hello :) You will need to add the "AddDescription" values in the .htaccess file. EX: AddDescription "The Test Image" test.jpg
    Thank you.
    0
  • CheesyBeanz
    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
  • cPanelMichael
    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
  • CheesyBeanz
    I've just tried it and it doesn't appear to work. Thanks for your help anyway. I'll have to do without.
    0
  • quietFinn
    Did you notice that the filename is .htaccess ? Starting with a dot and lowercase.
    0
  • CheesyBeanz
    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
  • cPanelMichael
    The AutoIndex Apache module is required, however that should be compiled by default: # httpd -l|grep autoindex mod_autoindex.c
    Thank you.
    0
  • CheesyBeanz
    [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
  • cPanelMichael
    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
  • quietFinn
    [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
  • CheesyBeanz
    [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
  • cPanelMichael
    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.