Page 1 of 1

Problem with edit after adding htaccess+htpasswd

Posted: Sun Oct 19, 2008 6:07 am
by GHoSti
Hi!

As I'm using Serendipity a second time for making a story, which is only a collection of some ideas and only me and some friends should read that, I've added to the top of the htaccess the following lines:

Code: Select all

AuthType Basic
AuthName "Restricted Directory"
AuthUserFile  /dir_to_the/.htpasswd
require valid-user
Leaving the rest untouched and uploaded the htpasswd.

It's not a big problem, but it's one which will get on my nerves some time in the future ;) After this change I have to logout and relogin to the administration every time I want to edit an entry. Any ideas? :)

Re: Problem with edit after adding htaccess+htpasswd

Posted: Sun Oct 19, 2008 1:06 pm
by garvinhicking
Hi!

One way is to simply use a username+password that you also use to login to s9y.

The other way is to disable the s9y automatic .htaccess login feature by putting this into your serendipity_config_local.inc.php:

Code: Select all

$serendipity['useHTTP-Auth'] = false;

HTH,
Garvin

Posted: Sun Oct 19, 2008 1:36 pm
by GHoSti
Did the last one and it's working fine! Thanks a lot!