A
A
Alexander Protasevich2019-02-11 20:24:41
URL Handling
Alexander Protasevich, 2019-02-11 20:24:41

How to rewrite by user ID?

Hello!
Tell me how to make it so that in the site.com/user?id=1 link of the user it would look like the site.com/id1 link, approximately like in Vkontakte users?
And when you type site.com/id1 in the address bar , site.com/user?id=1 was executed PS NGINX hosting Thank you for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-02-17
@procode

Everyone is silent))
It is necessary to register a redirect rule in the nginx config (this cap tells me))) and reload nginx
Details in Google - thousands of them!))
Good luck bro!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question