htaccess for Symfony on Shared Hosting

眉间皱痕 提交于 2019-12-20 06:12:40

问题


Im trying to setup a local environment that resembles shared hosting. I have copied the entire project into the htdocs directory, and thus the application does not start by default in the web directory.

For this I found these 2 references: http://oldforum.symfony-project.org/index.php/m/98117/ http://www.teamlalala.com/blog/2010/05/02/how-to-handle-symfony-on-shared-hosting/

But I have 2 doubts: 1. The .htaccess mentioned in the posts is to be added inside the WEB folder, or in the ROOT folder 2. If added to the ROOT folder, should we remove the default .HTACCESS in WEB?

thanks in advance


回答1:


You should place .htaccess file in your DOCUMENT_ROOT folder. By default in symfony it is sf_project_dir/web.



来源:https://stackoverflow.com/questions/5799050/htaccess-for-symfony-on-shared-hosting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!