SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2002
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess works with .htm but not .php

    This seems like it should be easy. I wrote an htaccess and htpasswd. It works great with the .htm pages in the directory. But the .php pages seem to ignore the .htaccess. Only the php pages appear without the user ever typing in a password.

    Any suggestions? Thanks in advance.
    B

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    Apache log in

    The Apache log-in on my server protects folders not files. I do not know what the htpasswd looks like, but the htaccess file looks similar to this
    Code:
    AuthType Basic
    
    AuthName "folderName"
    
    AuthUserFile "/pathHere"
    
    require valid-user


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •