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
Post a Comment