I have zenphoto installed in my main directory (/) with mod_rewrite enabled and everything works fine.
Now I'm trying to run a completely unrelated script in my cgi_bin directory (/cgi-bin) I tried editing the htaccess file so that all requests to localhost/p are directed to the cgi-bin directory but all I get is an object notfound error with the following text ...
I placed a simple gif in the cgi-bin and I try to request it by localhost/p/model.gif
The Zenphoto object you are requesting cannot be found. Album: p Image: model.gif Page: index
I know basics of htaccess and this my current htaccess I added the bolded line ...
`
RewriteEngine On
RewriteBase /
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
RewriteRule ^p/(.+)$ cgi-bin/$1 [L] ##########
You should not need to do anything to run a script in some other folder. (That is exactly how the admin backend runs.)
The standard zenphoto .htaccess file will check to see if the page referneced by the URI is an existing file. If so it will just load that file. If the file is not found you will get the zenphoto 404 error.
So the indication you are getting is that the .htaccess processing cannot find the target file.