title: Bypass htpasswd authentication for url with index.php and without it
body: <p>I have added htpasswd protection using htaccess file for authentication, now I want to bypass authenitcation for <code>www.website.com</code> and <code>www.website.com/index.php</code> where both urls are accessing index.php file. By using below htaccess file I have allowed index.php and I'm able to bypass <code>www.website.com/index.php</code> url but not <code>www.website.com</code></p>
  
  <p>My htaccess file is:</p>
  
  <pre><code># set an environtment variable "noauth" if the request starts with "/callbacks/"
  SetEnvIf Request_URI ^/index.php noauth=1
  
  AuthType Basic
  
  AuthName "RESTRICTED"
  #AuthName "Restricted Area"
  
  AuthUserFile "/path/to/.htpasswd"
  
  require valid-user
  
  Options -Indexes
  Options +FollowSymlinks
  RewriteEngine On
  RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([^.]+)$ /file.php?show=all&amp;name=$1 [L]
  
  # Here is where we allow/deny
  Order Deny,Allow
  Satisfy any
  Deny from all
  Require valid-user
  Allow from env=noauth
  </code></pre>