EDIT:
Our posts crossed in the ether. But maybe this information will help someone else, so I will leave it here.
*************************************
BTW, here is the English interpretation of the rewrite rules as they should be:
`
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Zenphoto
`
[i]sets rewrite active with a base folder of the install folder[/i]
`RewriteRule ^admin/?$ zp-core/admin.php [R,L]`
[i]redirects to the admin pages for a simple "admin" link[/i]
`
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^albums/?(.+/?)?$ $1 [R=301,L]
`
[i]if the request is a directory on the server, treat it as an album folder[/i]
`
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
`
[i]id the request is a file that exists on the server or it is a folder that exists on the server[sic] load that request[/i]
`##### put no rules before this line #######`
So, if the request is for a script file that last test should be aborting the rewrite rules and directly loading the script. If it is not, I do not know why. You might try setting the `DEBUG_404` define to true and see what the debug log tells you.