php Zend / MVC without mod_rewrite

前端 未结 5 1528
攒了一身酷
攒了一身酷 2021-01-22 08:19

I\'ve seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-22 09:02

    OK my verdict :-) : I have used successfully zend without mod_rewrite and it's as you've all said site/index.php/controller/action. I knew that before posting this. I've also found out around the net a technique that "pushes" 404 pages to index.php therefore what is not a resource (eg. CSS, image, etc) gets there, with one exception: POST values. So I decided that the next time an application has to be made in the specific server, to ask politely for mod_rewrite. If administrator can not provide it, talk with my boss or if it is for me, switch provider. Generally it is a shame some times that PHP market is so much fragmented (php4, php5, php6, mod_rewrite, mod_auth, mod_whatever), but this is another story...

提交回复
热议问题