How are you doing the rewrite? I do this same practice all the
time. It's pretty simple. In the action for home you check if they
need to login if they do, then use this snippet:
redirect_to :controller => "login", :action => "login"
This causes a 302 status code with the correct target url.