Zend Framework application without virtual hosts

后端 未结 4 1556
天命终不由人
天命终不由人 2020-12-30 16:37

Is it possible to configure web server on Windows (Apache or IIS) without setting up virtual hosts so Zend Framework application could be accessed with link like http://exam

4条回答
  •  一生所求
    2020-12-30 17:04

    use this .htaccess

    RewriteEngine On
    RewriteRule ^(.*)$ public/$1?%{QUERY_STRING} [QSA,L]
    

    and put this in application.ini

    resources.frontController.baseUrl = "/myapp/"
    

提交回复
热议问题