I have a stat script installed at /stat and zenphotos is installed at root.
couple of days ago i could access the stat directory fine but i recently updated apache (2.2) and php (5.2.6) and now i can't seem to access the stat directory unless i disable mod_rewrite.
The zenphoto is installed in root that is at http://domain.com and the stat is installed at http://domain.com/stat
I get the 404 page if i open the stat page when mod_rewrite is on.
My .htaccess file is
[cpde]
RewriteEngine On
RewriteBase /
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^albums/?(.+/?)?$ $1 [R=301,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]
RewriteRule ^(.)page/([A-Za-z0-9-]+)/?$ index.php?album=$1&p=$2 [L,QSA]
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]
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
[/code]
The rewrite rule acrylian mentions is the one that should be letting you access your /stat folder. However, the rule basically says "if a file or folder by the name of the request exists, just use the request". So, maybe there is a problem with the case of the request or maybe the exact file does not exist.