rewrite the url keeping the previous one


I would like to understand if it is possible, through add_rewrite_rule, to do this:

a user types: https://example.com/username

the user sees the page: https://example.com/author/username

the url remains: https://example.com/username

Thanks