[Ror-es] Como detectar el nombre del dominio
Jose Pepe
ruby-forum-incoming at andreas-s.net
Sat Apr 28 12:58:31 GMT 2007
lo hehecho con javascript y fuciona muy bien:
<html>
<head>
The domain name for this document is:
<script type="text/javascript">
document.write(document.domain)
var x=document.domain
if (x == "www.mysite.com") {
window.location = "http://www.mysite.com/";
}
else
{
window.location = "http://www.myotherdomain.com";
}
document.write(x);
</script>
</head>
<body>
</body>
</html>
--
Posted via http://www.ruby-forum.com/.
More information about the Ror-es
mailing list