# Routes

**URL:** <https://www.ruby-forum.com/t/routes/140562>\
**Category:** Rails\
**Created:** [June 16, 2008, 9:38am UTC](https://www.ruby-forum.com/t/routes/140562 "2008-06-16T09:38:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e99b99/32.png) [@Niranjan](https://www.ruby-forum.com/u/Niranjan)\
**Post date:** [June 16, 2008, 9:38am UTC](https://www.ruby-forum.com/t/routes/140562/1 "2008-06-16T09:38:15Z")

</div>

in routes.rb, we can route based on the path.  
For example, if the path was [http://abcd/xyz](http://abcd/xyz), we can route based on  
‘xyz’ but can we route based on ‘abcd’??

---

<div class="post-metadata">

**Author:** ![Niranjan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e99b99/32.png) [@Niranjan](https://www.ruby-forum.com/u/Niranjan)\
**Post date:** [June 17, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/routes/140562/2 "2008-06-17T15:07:00Z")

</div>

I think that’s something you need to do at the server level, e.g. in  
your apache config file.
