Hello, I have two domains pointing to my webserver: www.domain1.com and www.domain2.com I need to redirect call that come from domain2 to www.domain2.com/fd/ What is the best or even possible way to do this ? A rewrite ? If so, can someone point me how to do this, as I understand nothing of rewrites.... Thanks for any help.... Marcello --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
in your rails project in config/routs.rb put map.root :controller => ''controller_name'' On Sat, Apr 19, 2008 at 4:19 PM, Marcello Parra <parrones-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > I have two domains pointing to my webserver: www.domain1.com and > www.domain2.com > I need to redirect call that come from domain2 to www.domain2.com/fd/ > > What is the best or even possible way to do this ? > > A rewrite ? If so, can someone point me how to do this, as I understand > nothing of rewrites.... > > > Thanks for any help.... > > > Marcello > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Jon.... But I want to do this just from requests coming from www.domain2.com.... www.domain1.com should do to another controller.... On Apr 19, 12:38 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> in your rails project in config/routs.rb put > > map.root :controller => ''controller_name'' > > On Sat, Apr 19, 2008 at 4:19 PM, Marcello Parra <parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello, > > I have two domains pointing to my webserver:www.domain1.comand > >www.domain2.com > > I need to redirect call that come from domain2 towww.domain2.com/fd/ > > > What is the best or even possible way to do this ? > > > A rewrite ? If so, can someone point me how to do this, as I understand > > nothing of rewrites.... > > > Thanks for any help.... > > > Marcello--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Gessing then these are the same project? Really I suppose what web server you are using? On Sat, Apr 19, 2008 at 4:44 PM, parrones-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <parrones-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Thanks Jon.... > > But I want to do this just from requests coming from www.domain2.com.... > www.domain1.com should do to another controller.... > > > > > On Apr 19, 12:38 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > in your rails project in config/routs.rb put > > > > map.root :controller => ''controller_name'' > > > > On Sat, Apr 19, 2008 at 4:19 PM, Marcello Parra <parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > Hello, > > > I have two domains pointing to my webserver:www.domain1.comand > > >www.domain2.com > > > I need to redirect call that come from domain2 towww.domain2.com/fd/ > > > > > What is the best or even possible way to do this ? > > > > > A rewrite ? If so, can someone point me how to do this, as I > understand > > > nothing of rewrites.... > > > > > Thanks for any help.... > > > > > Marcello > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes... same project... I''m using LiteSpeed.... On Apr 19, 12:51 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Gessing then these are the same project? > > Really I suppose what web server you are using? > > On Sat, Apr 19, 2008 at 4:44 PM, parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > Thanks Jon.... > > > But I want to do this just from requests coming fromwww.domain2.com.... > >www.domain1.comshould do to another controller.... > > > On Apr 19, 12:38 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > in your rails project in config/routs.rb put > > > > map.root :controller => ''controller_name'' > > > > On Sat, Apr 19, 2008 at 4:19 PM, Marcello Parra <parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > Hello, > > > > I have two domains pointing to my webserver:www.domain1.comand > > > >www.domain2.com > > > > I need to redirect call that come from domain2 towww.domain2.com/fd/ > > > > > What is the best or even possible way to do this ? > > > > > A rewrite ? If so, can someone point me how to do this, as I > > understand > > > > nothing of rewrites.... > > > > > Thanks for any help.... > > > > > Marcello--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ah, sorry never used that one! I am affraid I will have to hand over to someone else. But yes I would say a redirect/alias is best then. On Sat, Apr 19, 2008 at 4:54 PM, parrones-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <parrones-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Yes... same project... > I''m using LiteSpeed.... > > > > On Apr 19, 12:51 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > Gessing then these are the same project? > > > > Really I suppose what web server you are using? > > > > On Sat, Apr 19, 2008 at 4:44 PM, parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > > > > > > Thanks Jon.... > > > > > But I want to do this just from requests coming > fromwww.domain2.com.... > > >www.domain1.comshould do to another controller.... > > > > > On Apr 19, 12:38 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > in your rails project in config/routs.rb put > > > > > > map.root :controller => ''controller_name'' > > > > > > On Sat, Apr 19, 2008 at 4:19 PM, Marcello Parra <parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > wrote: > > > > > Hello, > > > > > I have two domains pointing to my webserver:www.domain1.comand > > > > >www.domain2.com > > > > > I need to redirect call that come from domain2 > towww.domain2.com/fd/ > > > > > > > What is the best or even possible way to do this ? > > > > > > > A rewrite ? If so, can someone point me how to do this, as I > > > understand > > > > > nothing of rewrites.... > > > > > > > Thanks for any help.... > > > > > > > Marcello > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Jon for your attention... But I think that ListSpeed''s Rewrite is almost compatible with Apache''s one... I also tried something, but could not make it work.... Thanks... On Apr 19, 12:57 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Ah, sorry never used that one! > > I am affraid I will have to hand over to someone else. > > But yes I would say a redirect/alias is best then. > > On Sat, Apr 19, 2008 at 4:54 PM, parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > Yes... same project... > > I''m using LiteSpeed.... > > > On Apr 19, 12:51 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > Gessing then these are the same project? > > > > Really I suppose what web server you are using? > > > > On Sat, Apr 19, 2008 at 4:44 PM, parro...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <parro...-Re5JQEeQqe8@public.gmane.orgm> > > > wrote: > > > > > Thanks Jon.... > > > > > But I want to do this just from requests coming > > fromwww.domain2.com.... > > > >www.domain1.comshoulddo to another controller.... > > > > > On Apr 19, 12:38 pm, "Jon Thomas" <jon...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > in your rails project in config/routs.rb put > > > > > > map.root :controller => ''controller_name'' > > > > > > On Sat, Apr 19, 2008 at 4:19 PM, Marcello Parra <parro...-Re5JQEeQqe8@public.gmane.orgm> > > > > wrote: > > > > > > Hello, > > > > > > I have two domains pointing to my webserver:www.domain1.comand > > > > > >www.domain2.com > > > > > > I need to redirect call that come from domain2 > > towww.domain2.com/fd/ > > > > > > > What is the best or even possible way to do this ? > > > > > > > A rewrite ? If so, can someone point me how to do this, as I > > > > understand > > > > > > nothing of rewrites.... > > > > > > > Thanks for any help.... > > > > > > > Marcello--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---