I need to generate a system where I have a template page (the fb profile for example) and that will be fed by my database with the information according to a user ID. My problem is: I do not want the link of the passed parameter (id) to be exposed in the header of the page, but rather a variable of that user that gave the query (the user of it for example) and that at the same time if I access that link .mysite.com / user) it is redirected to that same page (giving the query in the DB and pulling the information normally)
Is this possible via PHP or JS?
Thank you in advance!