2009/6/23 kun niu <[email protected]>: > > > > Sudheer Satyanarayana wrote: >> >> Niu Kun wrote: >>> Dear all, >>> I'm new to Zend Framework. >>> First of all, I followed the quick start sample. But I change the >>> database to mysql. >>> And I change the pdo configuration. >>> But when I browse to http://localhost/guestbook, I always get a 404 >>> error. >>> So I downloaded the sample code from the zend framework website and >>> changed nothing. >>> But, this time, I got the same 404 error. >>> Would anyone here please point me out? >> Have you enabled mod_rewrite? Is your host allowed to override the >> rewrite rules? >> >> Hi, >> Thank you for your attention and reply. >> But I can't find any hints about how to configure zend framework >> mod_rewrite engine. >> And I'm using nginx. Should I move to apache? >>
You don't have to move to apache but maybe it'll be easier for you. Otherwise you should read http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.introduction and see how the rewrite rules are configured. Then search in google how to rewrite urls in nginx and configure it. Regards, Martin Martinov http://mmartinov.com/
