Take the 2-minute tour ×

I am moving a .NET application over to a Rails application.

I need to re-write the url:




How can I do this?

I don't want a redirect, I want it to seem like I am responding to this request "normally", but internally my Ruby on Rails application is going to think the URL was the 2nd url I posted.

share|improve this question

1 Answer 1

rewrite ^/users/user.aspx$ /users/$arg_userid?;

The trailing question mark prevents the query string from being appended to the rewritten URI.

share|improve this answer

Your Answer


