How can I set a global routing? Because I can only set it per application... In this case game is another app than site, which is logical.
basicaly I get this: site.com should redirect (visible to visitor, better for google, prevents double indexing) to site.com/site/index/ index.php loads site. On Feb 10, 8:08 pm, Martino Piccinato <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
