SetEnv APPLICATION_ENV development

RewriteEngine On
ReWriteCond %{REQUEST_URI} ^(.*)zf_([^/]*)/(.*)/public/(.*)\.php$
RewriteRule ^.*$ /index.php [F,L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

#ReWriteCond %{REQUEST_URI} ^(.*)zf_([^/]*)/(.*)/modules/(.*)\.css$
#ReWriteRule ^(.*)zf_([^/]*)/.*modules/(.*)\.(.*)$  write.php?a=$1&b=$2&c=$3&d=$4 [NC,L]
#RewriteRule ^(.*)zf_([^/]*)/(.*)/modules/(.*)\.css$ write.php?a=$1&b=$2&c=$3&d=$4 [NC,L]

##RewriteCond %{REQUEST_FILENAME} !-s
##ReWriteCond %{REQUEST_URI} ^(.*)zf_([^/]*)/(.*)/modules/(.*)\.css$
##RewriteRule ^(.*)zf_([^/]*)/(.*)/modules/(.*)\.css$ modules/$4.css [NC,L]

ReWriteCond %{REQUEST_URI} ^(.*)zf_([^/]*)/.*modules/(.*)\.(.*)$
ReWriteRule ^(.*)zf_([^/]*)/.*modules/(.*)\.(.*)$  modules/$3.$4 [NC,L]
ReWriteCond %{REQUEST_URI} ^(.*)zf_([^/]*)/.*javascript/(.*)\.(.*)$
ReWriteRule ^(.*)zf_([^/]*)/.*javascript/(.*)\.(.*)$  javascript/$3.$4 [NC,L]
ReWriteCond %{REQUEST_URI} ^(.*)zf_([^/]*)/.*themes/(.*)\.(.*)$
ReWriteRule ^(.*)zf_([^/]*)/.*themes/(.*)\.(.*)$  themes/$3.$4 [NC,L]
ReWriteCond %{REQUEST_URI} ^(.*)zf_([^/]*)/.*system/(.*)\.(.*)$
ReWriteRule ^(.*)zf_([^/]*)/.*system/(.*)\.(.*)$  system/$3.$4 [NC,L]
ReWriteCond %{REQUEST_URI} ^(.*)zf_([^/]*)/.*images/(.*)\.(.*)$
ReWriteRule ^(.*)zf_([^/]*)/.*images/(.*)\.(.*)$  images/$3.$4 [NC,L]

RewriteCond %{REQUEST_FILENAME} ^.*zf_.*public.*$
RewriteRule (^.*)public(.*$) $1zend\/public$2 [NC,L]
RewriteCond %{REQUEST_FILENAME} ^.*zf_.*$
RewriteRule ^.*$ zfindex.php [NC,L]
