Problem with edit after adding htaccess+htpasswd

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
GHoSti
Regular
Posts: 12
Joined: Wed Dec 12, 2007 8:18 pm
Location: Büdelsdorf/Germany

Problem with edit after adding htaccess+htpasswd

Post 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? :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with edit after adding htaccess+htpasswd

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
GHoSti
Regular
Posts: 12
Joined: Wed Dec 12, 2007 8:18 pm
Location: Büdelsdorf/Germany

Post by GHoSti »

Did the last one and it's working fine! Thanks a lot!
Post Reply