only allowing connections to a directory over https

I have a website in ispconfig and in co-domains I have it forward a subdomain to a directory. Is it possible to have ISPConfig set it so when people go to that directory it automatically sends them to https so no one can access the files in that directory over http?