On Mon, Nov 30, 2009 at 8:33 PM, sameera <[email protected]> wrote:

> Hi All,
>
> and when I get the source code of the www.site2.com (which redirects
> to site1) it has this,
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>   "http://www.w3.org/TR/html4/strict.dtd";>
> <html>
>
> <head>
>  <title>sameera gayan </title>
>  <META name="description" content="test"><META name="keywords"
> content="test">
> </head>
> <frameset rows="100%,*" border="0">
>  <frame src="http://www.site1.com"; frameborder="0" />
>  <frame frameborder="0" noresize />
> </frameset>
>
> <!-- pageok -->
> <!-- 04 -->
> <!-- -->
> </html>
>
>
> So what is the best option for getting the 2 different site URL's ,
>
> thanks in advance
>
> cheers,
> Sameera
>
> --
>
>
This is not the best in doing such things.  In this case, it's logical that
you never see 'site2.com' in your request.host attribute.

First of all, in your DNS both 'site1.com' & 'site2.com' should point the
same ip address.

Then on your server, you should configure your webserver that both '
site1.com' & 'site2.com' urls point to the same directory and then you can
access the request.host which the right hostname set.

Cya
C+++

--

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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to