just write in the default action (usually module:default, action:
index but you can change it in routing.yml)
$this->redirect('site/index');
I don't know if you have a special reason to issue a redirect, using
routing.yml you could just map
"/" (the root url) to "site/index".
On Tue, Feb 10, 2009 at 5:45 PM, Iltar <[email protected]> wrote:
>
> Whenever I come at mywebsite.com, I want to be redirected to
> mywebsite.com/site/index. I know how with rewrites, but if it's
> possible within symfony, I'd rather do that. Is that possible, if so
> how?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---