Rewrite for Zend Framework

Huan Truong huantnh at gmail.com
Wed Nov 7 09:29:36 MSK 2007


Hi all,

I hav difficulties creating rewrite rules for 
Zend_Controller_Router_Rewrite according to 
http://framework.zend.com/manual/en/zend.controller.router.html

The apache rewrite rule was:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

But when I ported this to nginx:

location / {
root /home/my_home/public_html;
if ($request_filename !~ "\.(js|ico|gif|jpg|png|css)$") {
  rewrite ^(.*) index.php last;
}
index index.php;
}

It didn't work. I always received this error message when requesting an 
url (http://my-site.com/test/) from nginx: No input file specified.

Please help. Thanks in advance.






More information about the nginx mailing list