0
votes

Using a routing rule in a Symfony project the function link_to (or url_for) generates an url like mydomain.com/myproject/web/friendly-name.html or mydomain.com/web/friendly-name.html There is a smart way, alternative to write own helper, to generate urls without /myproject/web or /web keeping the choosen directory structure.

Updating

Finally I found the solution in the answer to this question: symfony on virtual host document root problem

1
Thanks for your comment. No duplicated, I'm not looking for url rewriting. As written in "The Definitive Guide to Symfony", the routing system does two things: * It interprets the external URL of incoming requests and transforms it into an internal URI, to determine the module/action and the request parameters. * It formats the internal URIs used in links into external URLs (provided that you use the link helpers). I'm looking for the second thing, the url generation. - macgyver

1 Answers

0
votes

just point your webserver Document Root to /web Directory.

This is the right way of integrating symfony1.4.

Cheers malte