[Rails] Re: Redirect to domain from subdomain

2009-08-27 Thread Matt Jones
This is mostly about Apache (or equivalent) settings higher up than .htaccess - look around for documents regarding name-based virtual hosting. It's quite possible to set up - pretty much every shared webhost out there is doing it. --Matt Jones On Aug 26, 2:58 am, Abhishek shukla

[Rails] Re: Redirect to domain from subdomain

2009-08-26 Thread Abhishek shukla
ok let me be more specific I have two domain which in pointing to my rails application and a subdomain 1. www.xyz.com 2. www.xyz.info 3. example.xyz.com Now when the user access www.xyz.info the example.xyz.com page should open up but the address bar should be www.xyz.info. So is it possible

[Rails] Re: Redirect to domain from subdomain

2009-08-26 Thread Hassan Schroeder
On Tue, Aug 25, 2009 at 11:58 PM, Abhishek shuklabettera...@gmail.com wrote: I have two domain which in pointing to my rails application and a subdomain 1. www.xyz.com 2. www.xyz.info 3. example.xyz.com Actually, no. You have three host names. xyz.com and xyz.info are domain names.

[Rails] Re: Redirect to domain from subdomain

2009-08-26 Thread Abhishek shukla
On 8/26/09, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Tue, Aug 25, 2009 at 11:58 PM, Abhishek shuklabettera...@gmail.com wrote: I have two domain which in pointing to my rails application and a subdomain 1. www.xyz.com 2. www.xyz.info 3. example.xyz.com Actually, no. You

[Rails] Re: Redirect to domain from subdomain

2009-08-26 Thread Greg Donald
On Wed, Aug 26, 2009 at 3:24 AM, Hassan Schroederhassan.schroe...@gmail.com wrote: And no, it's not possible to redirect and have the url in the address bar remain the same. This is exactly what Apache's mod_rewrite does. You send it a url and it rewrites the request to the actual resource.

[Rails] Re: Redirect to domain from subdomain

2009-08-26 Thread Hassan Schroeder
On Wed, Aug 26, 2009 at 8:37 AM, Greg Donaldgdon...@gmail.com wrote: And no, it's not possible to redirect and have the url in the address bar remain the same. This is exactly what Apache's mod_rewrite does.  You send it a url and it rewrites the request to the actual resource. If a server

[Rails] Re: Redirect to domain from subdomain

2009-08-25 Thread prabesh shrestha
If you have a domain maindomain then you got to do whatever you need within that domain. How can you use other's domain?you can use subdomain on your maindomain but xyz is some other domain. You can't use that to redirect to your domain by anyway. On Aug 24, 6:33 pm, Abhishek shukla