Go up one directory in mod_rewrite
- by Rudolph Gottesheim
I've got a standard Zend Framework 1 project that looks a bit like this:
Project
|- public
|- .htaccess
|- index.php
The .htaccess looks like this:
RewriteEngine On
RewriteBase /
RewriteRule ^image/.*$ img.php?file=$1 [NC,L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d…