特定のファイル hoge.phpだけBasic認証を外す方法です。
<Directory "/var/www/html">
Order deny,allow
Allow from all
AuthUserFile /var/www/html/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter your ID and password."
AuthType Basic
require valid-user
<Files "hoge.php">
Satisfy Any
Allow from all
</Files>
</Directory>


