So, just to confirm, I’ve tried both
# BEGIN WordPress
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^/?zenphoto
RewriteRule . /index.php [L]
# END WordPress
and:
# BEGIN WordPress
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/?zenphoto
RewriteRule . /index.php [L]
# END WordPress
still no luck.
I tried both, and now when I access ‘zenphoto’, I get a File Open prompt, to open/save the PHP file.
Not sure if it’s useful, but here’s my .htaccess code for zenphoto:
# htaccess file version 1.1.4.0
# Update the above and the define in setup.php when you make changes to the rewrite rules!
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory. (Or let setup.php do it for you!)
<IfModule mod_rewrite.c>
RewriteEngine On
#### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!
RewriteBase /zenphoto
####
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [R,L]
RewriteRule index\\.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\\-_]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^(.*)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
#### Rewrite rule addtion for search
RewriteRule ^page/([A-Za-z0-9\\-_]+)/fields([0-9]+)/(.*)/([0-9]+)/?$ index.php?p=$1&searchfields=$2&words=$3&page=$4 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\\-_]+)/fields([0-9]+)/(.*)/?$ index.php?p=$1&searchfields=$2&words=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\\-_]+)/archive/(.*)/([0-9]+)/?$ index.php?p=$1&date=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\\-_]+)/archive/(.*)/?$ index.php?p=$1&date=$2 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\\-_]+)/tags/(.*)/([0-9]+)/?$ index.php?p=$1&searchfields=4&words=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\\-_]+)/tags/(.*)/?$ index.php?p=$1&searchfields=4&words=$2 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\\-_]+)/(.*)/([0-9]+)/?$ index.php?p=$1&words=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\\-_]+)/(.*)/?$ index.php?p=$1&words=$2 [L,QSA]
RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\\\\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\\\\]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA]
####
# Catch-all - everything else gets handled in PHP for compatibility.
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
</IfModule>
Would it make sense to combine the two .htaccess files, keep it in the root, and delete my zenphoto .htaccess file?
Really appreciate your patience guys.