Hi All,

I have a web site which has 2 domains

ex : www.site1.com
      www.site2.com (which will forward to www.site1.com with domain
masking)


www.site1.com is where the actual web server rungs

www.site2.com is just a domain name forwarder and I use mask to make
the user feel he/she is in www.site2.com even though he/she is in
www.site1.com

But in underlying code I want to distinguish  both the request (who
came from www.site1.com and who came from www.site2.com) so that I can
load their UI accrodingly

I tried request.host as well as request.referrer which always gives
www.site1.com

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

--

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