I have a subdomain i host datasheets on. These are in the format of PDF. I have a subdomain pointing to this directory and i can browse to a PDF with the full file path. However I can't just browse to the subdomain and see a list of all files.
I have created a .htaccess file with the below contents but still can't get directory browsing working - does anyone have any suggestions?
# Enable directory browsing
Options +Indexes
# Specify default index files (optional)
# Uncomment and edit the following line if you want to define a default index file
# DirectoryIndex index.html index.php
# Set the default charset to UTF-8 (optional but recommended for better compatibility)
AddDefaultCharset UTF-8
# Serve static files directly (optional but recommended for performance)
<IfModule LiteSpeed>
<FilesMatch "\.(html|htm|css|js|jpg|jpeg|png|gif|ico|svg|webp|woff|woff2|ttf|otf|eot|json|xml|pdf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
</IfModule>