Symfony2 - How can I remove 'web/app_dev.php/' from my url?

后端 未结 2 587
终归单人心
终归单人心 2021-01-14 06:20

How can I remove \'web/app_dev.php/\' from my url when I want my symfony website to go live?

This is the default url during development,

http://{loca         


        
2条回答
  •  粉色の甜心
    2021-01-14 07:05

    If you have access to the deployment server, from terminal you can use: php app/console cache:clear --env=prod and this will clear the prod cache and you will be able to use the standard route.

    But if you are deploying the application on hosting where you haven't access to terminal, need to find the app/cache/* and app/logs/* and remove their content and after add the proper rights (766|777) for the folders.

提交回复
热议问题