# Domain Pointers - Subdomain + ruby on rails

**URL:** <https://www.ruby-forum.com/t/domain-pointers-subdomain-ruby-on-rails/174144>\
**Category:** Rails\
**Created:** [August 21, 2009, 11:06am UTC](https://www.ruby-forum.com/t/domain-pointers-subdomain-ruby-on-rails/174144 "2009-08-21T11:06:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_shukla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Post date:** [August 21, 2009, 11:06am UTC](https://www.ruby-forum.com/t/domain-pointers-subdomain-ruby-on-rails/174144/1 "2009-08-21T11:06:53Z")

</div>

Hello Friends,

Need some help on domain pointers over subdomain. My requirement is that  
we  
have couple of subdomain like

[Example1.com](http://Example1.com)

Should point to [ex1.example.com](http://ex1.example.com)

[Example2.com](http://Example2.com)

Should point to [ex2.example.com](http://ex2.example.com)

This is what my requirement is , just wanted to know how can i Achieve  
this  
and do i need to configure my .htaccess file?

I am using Apache + Passenger + Ruby on rails 2.1.1

Thanks

Abhis

---

<div class="post-metadata">

**Author:** ![Abhishek\_shukla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Post date:** [August 21, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/domain-pointers-subdomain-ruby-on-rails/174144/2 "2009-08-21T12:51:59Z")

</div>

Abhishek shukla wrote:

Use Subdomain fu. It is much easier.

---

<div class="post-metadata">

**Author:** ![Abhishek\_shukla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Post date:** [August 21, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/domain-pointers-subdomain-ruby-on-rails/174144/3 "2009-08-21T20:48:51Z")

</div>

Hi Abhis,

On Fri, 2009-08-21 at 14:36 +0530, Abhishek shukla wrote:

> this and do i need to configure my .htaccess file?
> 
> I am using Apache + Passenger + Ruby on rails 2.1.1

I’ve just begun looking into how to satisfy a similar requirement and  
came across this this morning.

[http://www.webhostingtalk.com/showthread.php?p=3932702](http://www.webhostingtalk.com/showthread.php?p=3932702)

Found it by Googling ‘redirect domain to subdomain’

It’s not at the top of my priority list at the moment so that’s as far  
as I got. Would appreciate it if you’d post back your findings /  
solution.

HTH,  
Bill
