SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Sweden
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Deny all but one file?

    Hi!

    I'm out of ideas here...

    I want to use a htaccess to do this:
    - All files needs authentication (i can do this)
    - The file test.php should be accessible for any one without authentication.

    Please, you will save my day if you can help out :-)

    //Mattias

  2. #2
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    Satisfy directive is your friend then.

    So

    /path/to/protected/dir/.htaccess
    Code:
    <Files test.php>
        Satify any
    </Files>
    doing that all files will require the authentication but test.php no...



    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03


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
  •