#104683 - 02/22/0304:52 PM.htaccess to protect only specific files
usr bin geek
Moderator / Kingpin
Registered: 02/11/01
Posts: 817
Loc: Burlington, VT
I have a directory where every file in the directory but three should be protected by password. Is there a way to do this using .htaccess on Apache? What would the correct code be for the .htaccess file?
BTW, all the files in the directory have the same extension (.php so a *.php won't work.)
Someone gave me this code but it causes an error if anything is loaded from that directory: [code][/code]