开发者

symfony backend.php links

开发者 https://www.devze.com 2023-02-15 15:37 出处:网络
I\'ve uploaded my first symfony projec开发者_如何学Pythont to a server. If I go to the admin page (backend.php) everything is works goot, until I click a link...

I've uploaded my first symfony projec开发者_如何学Pythont to a server. If I go to the admin page (backend.php) everything is works goot, until I click a link... then Symfony can't find the page... what should I change for correct links from backend.php.


First you should check if you're using the 'script name' in generated URL's.

The file /apps/backend/config/settings.yml should contain a setting no_script_name for your selected environment.

If the value is true, the scriptname (backend.php) is stripped from generated URL's. In that case you should have a .htaccess RewriteRule or something which selects the appropriate frontend controller.

So if's you want URL's like: http://www.example.com/backend.php/module/action set the property to false. For URL's like http://backend.example.com/module/action set it to true.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号