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

Marked as a duplicate by the participants 0xdb , Enikeyschik , LFC , German Borisov , iluxa1810 21 Feb at 11:56 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • duplicates: 1 , 2 - aleksandr barakin

1 answer 1

rewrite ^/id([0-9]+)(/?)+$ /user?id=$1; 
  • for NGINX fit? - Alexander Protasevich
  • @AlexanderProtasevich, yes, it should. - Vladimir Gonchar February