Rails and mod_rewrite


We’ve recently built a CMS app that will host quite a few sites, the
sites can currently be accessed as follows:


I’ve created an Apache vhost to handle ‘siteone.com’, pointed it to the
‘public’ folder of the app and it uses the following rewrite rule to
access the correct path:

RewriteRule ^/$ http://siteone.com/siteone/home

Thing is I’d like it to access ‘http://siteone.com/siteone/home’, but
only display ‘http://siteone.com/’. I’ve tried a few rules but aren’t
sure how I should go about this.

How does mod_rewrite see ‘^/siteone/home’ in a rails app? As a query

Any advice/assistance would be much appreciated.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs