htAccess

htAccess

Posted by: kblessing
Posted on: 2007-10-04 07:33:00

I noticed the control pannel had WebDAV but doesn't sound like what I want to accomplish.

I already have a .htaccess file for the mod_rewrite of my urls. But I am wondering how to go about adding a command on the end that will password protect a specific folder, for example if I wanted to upload a bunch of jpegs from a shoot, and give the client a temporary login via htaccess to go and download the full sized files.

-Karl Blessing

Re: htAccess

Posted by: patricktan
Posted on: 2007-10-04 08:05:00

If you use WebDAV in the panel, it will overwrite existing .htaccess file.

If you already have a .htaccess file, I'll suggest you

1. backup your .htaccess file
2. create username and password using WebDAV in the panel
3. append the backuped command to the new .htaccess file

You should be able to achieve what you want by doing that.

If you are confident with htaccess commands, you can refer to this article to create a username and password on your existing .htaccess file.

Re: htAccess

Posted by: monkeyboy7706
Posted on: 2007-10-04 12:50:00

You can do this from the panel. In the same page for webDAV you can also choose a folder to set up a password on. It also allows you to create usernames and passwords.

This would only affect the folder you have protected and all folders it contains.

Re: htAccess

Posted by: rlparker
Posted on: 2007-10-04 13:13:00

In reply to:

2. create username and password using WebDAV in the panel


I think yo meant to say:

"2. create username and password using .htaccess in the panel".

It *can* be confusing that WebDAV is on the same page with the .htaccess "auto-generation" stuff, but they are very different things, and one should be careful *not* to "use" the WebDAV stuff on the page when trying to use .htaccess from within the Control Panel.

That said, your advice on saving any existing .htaccess for subsequent merging with the .htaccess file created by the panel for Apache authentication and/or hotlink protection is right on the money! .smile

--rlparker



Re: htAccess

Posted by: patricktan
Posted on: 2007-10-05 06:29:00

Thanks for the correction rlparker.

I do mean create username and password using WebDAV --> .htaccess in the panel.

Haiz.. I need to improve my English

Tags: htaccess filemod rewritekarl blessingcontrol panneli am wonderingpassword protectjpegswebdavaccomplishurls