remove index.php from zend framework url

前端 未结 2 462
花落未央
花落未央 2021-01-16 02:16

I am developing a module using zend framework and I have created a project using zf create project command

when i try to access the url using ip/folder/control

2条回答
  •  一个人的身影
    2021-01-16 02:30

    I just add this to the top of the index.php:

    $_SERVER["REQUEST_URI"] = str_replace('index.php', '', $_SERVER["REQUEST_URI"]);
    

    which is the other method suggested by Rob Allen at Akrabat.com

提交回复
热议问题