redirect: .htaccess redirects site X to site AND without losing the URI

I tried to figure out how to redirect 401.shtml to index.php.

It works like this:

Redirect /401.shtml /index.php

But if there is a URI, then it should be redirected to the URI instead of index.php.

How can I do it to maintain the URI, this is possible?