This question has already been answered:
Tell me how to make it so that the link site.com/user?id=1 users looked like a site.com/id1 link just like Vkontakte users?
And when you enter site.com/id1 in the address bar, site.com/user?id=1 was executed
PS hosting at NGINX