default userpic

Multiple sign-in required with htaccess password protected directories

Vote 0 Votes

Hi,

I have my MT blog in a htaccess password protected directory within a larger site. I get a password prompt when I get to the blog, then I get another password prompt when I go to an entry page. The entry is in a year/month subdirectory

Any idea how to get rid of these subsequent password prompts?

URL looks like this
https://.../blog/2010/03/my-entry.html

Running Movable Type Pro version 4.32-en

-paul

Reported on Movable Type 4.3

11 Replies

| Add a Reply
  • You may like to point both the blog and your year/month subdirectory to the same password file and use a common password for both.

  • Thank you for sharing

  • Thanks, but this does not solve the problem. I'm not using a password file, I'm using LDAP, but that's not really relevant. I'll try to clarify.

    I have a private area, mysite.com/private, with lots of stuff in there. Amongst the other stuff is the blog, mysite.com/private/blog. Then there are entries under there, mysite.com/private/blog/2010/03/my-entry.html

    The .htaccess file is in the top level of the private area, mysite.com/private. There are no other .htaccess files in the subdirectories. However, when you go to mysite.com/private/blog you have to login with your password. Once you've logged in, you are prompted again if you click to read an entry (mysite.com/private/blog/2010/03/my-entry.html).

    I don't know why there's this additional prompt after you've already given your username & password and I'd like to get rid of it.

    -paul

  • I think I figured this out. I had some static http://mydomain.com links and references in my templates that had to be switched to https, and I also had to switch the Site URL to https in the Publishing Settings. Seems to have solved the problem.

    -paul

  • It solved it in the sense that now everything is based on https

  • Yes, that is what caused my problem, so that is the solution.

  • where exactly did you move the content to, in httpd.conf?

  • I didn't move the content, it was an issue with the templates. The templates I used had hard references to http: URLs, I had to change them to https or relative.

  • I am getting prompts for id/password for each image file displayed on the page. My .htaccess looks like this..

    AuthName "Enter id and password"
    AuthType Basic
    AuthUserFile /www/test/src/.htpasswd
    AuthGroupFile /www/tst/src/.htgroup
    require group admins

    If I add this it won't even ask once for id/password:

    Order Deny,Allow
    Allow From All
    Satisfy Any

    Any help would be greatly appreciated

  • Thanks admin

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012