0

I want to exclude a specific file from authentication. e.g host: test.com. I want to exclude test.com/unsecure.php

This is my .htaccess

AuthType Basic
AuthName "TEST"
AuthUserFile /var/www/vhosts/TEST/.htpasswd
Require valid-user
Dale K
  • 25,246
  • 15
  • 42
  • 71
rkevx21
  • 2,441
  • 5
  • 19
  • 40
  • You can find here how to do it https://stackoverflow.com/questions/14603568/password-protect-a-specific-url – Ôrel Jan 03 '19 at 02:19
  • 2
    Possible duplicate of [htaccess exclude file require auth](https://stackoverflow.com/questions/21216816/htaccess-exclude-file-require-auth) – Dale K Jan 03 '19 at 03:18

1 Answers1

0

Got it now. Thanks

AuthType Basic
AuthName "TEST"
AuthUserFile /var/www/vhosts/TEST/.htpasswd
Require valid-user

<Files "unsecure.php">
   Satisfy Any
   Allow from all
</Files>
rkevx21
  • 2,441
  • 5
  • 19
  • 40