Zend Framework application without virtual hosts

后端 未结 4 1577
天命终不由人
天命终不由人 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条回答
  •  -上瘾入骨i
    2020-12-30 16:51

    Put .htaccess file wit the following content to your myapp directory:

    RewriteEngine on
    RewriteRule (.*) public/$1
    

提交回复
热议问题