[Rails] Redirect from site root

"Luis G. Gómez" lgomez at vfxnetwork.com
Sun Nov 28 06:00:58 GMT 2004


You can set this on lines 22 and 23 of public/.htaccess


Chris Brooks wrote:
> Hi folks,
> 
> This is probably a simple FAQ, but I'm trying to figure out the right
> way to map the site root (e.g., http://foo.com) to a particular
> controller (e.g., http://foo.com/site_pages/).  Is there a standard
> way of doing this? I assume it varies depending on Webbrick, Apache,
> etc. Thanks for any guidance.
> 
> Cheers,
> 


More information about the Rails mailing list