php - Get Directory contents but dont show directory -


i have linux hosting , want files specified url because these files registered users. when accessing directory url files showing up.

example: www.site.com/files (this should redirect home page)

example: www.site.com/files/filename.zip ( should able download file)

i tried .htaccess modrewite files directory not showing file.

any idea, how resolve problem.

a lame workaround, nevertheless; include empty index file in directory.

also add line in .htaccess or httpd.conf file:

indexignore * 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -