Redirection

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

in your rails project in config/routs.rb put

map.root :controller => ‘controller_name’

Thanks Jon…

But I want to do this just from requests coming from www.domain2.com
www.domain1.com should do to another controller…

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, [email protected] [email protected]

Yes… same project…
I’m using LiteSpeed…

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, [email protected] [email protected]

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…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs