01-28-2008, 09:03 PM
I have files on my server that I don't want people to access. such as the /template directory which contains .tpl files. How would I deny access from all the files in this directory and the directory itself and display a page such as the error 404 method?
01-28-2008, 10:14 PM
If the files are being called from the server and not the client, you can put this .htaccess rule in the directory you'd like to keep private:
Deny from all
Also, this isn't an HTML/CSS question. Moving to General Web…
01-29-2008, 05:45 PM
Or you could move the folders out of the web-accessible directory. Or put a password on them with .htaccess.