Forum: Ruby on Rails Server migration another documentroot

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
54753bcb4e006bdcf1887d258bcd821e?d=identicon&s=25 Daniel Wijnands (Guest)
on 2007-02-01 09:19
Hello :) ,

I have an application that has been online for quite some time.
Now the time has come to migrate the application to another server
The problem is that the document root of the new server will be
differtent :

it used to be :

http://domain/:controller/:action ed (so rails is in the documentroot)

new situation :

http://domain/railsdir/:controller/:action (rails dir is a symbolic link
to public

The problem is that the old configuration has been comunicated a lot.
So i want to rewrite the old url requests transparant to the new request

http://domain/:controller/:action -->

if possible i would like to route it in a .htaccess so that visiters of
the website
never see the railsdir. The should think nothing has changed.

Anyone an idea how this can be done

Kind regards daniel
Fd5b8048d157a919043272d6292cb2b1?d=identicon&s=25 alex (Guest)
on 2007-02-01 11:33
(Received via mailing list)
Try posting your question on I got my answer there quite

On Feb 1, 9:19 am, Daniel Wijnands <>
This topic is locked and can not be replied to.