
Donna
Staff
/ Moderator

Apr 24, 2009, 2:24 PM
Post #17 of 22
(3921 views)
Shortcut
|
|
Re: [marys] Custom uploads directory - a big hole in AM2
[In reply to]
|
Can't Post
|
|
Hi Marys, This method would require that your files be named appropriately, but this appears to work: AuthType Basic AuthUserFile /server/path/to/.htpasswd AuthName "Members Area" Order deny,allow <Files uploads*> require valid-user </Files> What this basically says is that any file that starts with "uploads" (ie, "uploads_filename.jpg" or "uploads-randomdocument.pdf") is protected, but any other file name is not. This means that when you're uploading files to your protected articles, you would need to make sure the filenames have been changed to start with "uploads". Would something like that work for you? Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|