.htaccess protect /tools/Somescript/

Permalink
Hi,

I am integrating a payment gateway which requires a basic authentication directory. Is there anyway to do this?

Currently the directory is bypassed as index.php is serving the file.

If I turn off pretty URLs I can then authenticate just one file. I can't seem to get this to work when rewrites are on. I am trying with a rewrite condition but all I get is the concrete5 page not found.

Here is my .htaccess file:

AuthName "Restricted Area"
AuthType Basic
AuthUserFile "/home/amgenren/.htpasswds/public_html/tools/passwd"


<Files mullet.jpg>
require valid-user
</Files>




<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /


RewriteCond %{REQUEST_URI} !^/(mullets|webmail)/.*$


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d



RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>




Its a barclays ePDQ.

Tearing my hair out so any help would be gratefully received!!

Cheers,

Adam