Routes

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

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