I've updated my users page so that it hides '?user=' from the URL which is perfect, but I have this text box which helps searches for a user on that page.
The problem is that it adds itself as "?user=USERNAME" with or without something existing in the URL so for example, http://example.com/user/USERNAME would become after submission http://example.com/user/USERNAME?user=USERNAME, and if the GET is empty (http://example.com/user/) then it does http://example.com/user/USERNAME.
What I want it to do is to do http://example.com/user/USERNAME even after submission of the text box (of course using GET).
I was thinking of a ? or = detection so it would redirect to the proper URL but that seems pretty bad, so I'm out of ideas.
The problem is that it adds itself as "?user=USERNAME" with or without something existing in the URL so for example, http://example.com/user/USERNAME would become after submission http://example.com/user/USERNAME?user=USERNAME, and if the GET is empty (http://example.com/user/) then it does http://example.com/user/USERNAME.
What I want it to do is to do http://example.com/user/USERNAME even after submission of the text box (of course using GET).
I was thinking of a ? or = detection so it would redirect to the proper URL but that seems pretty bad, so I'm out of ideas.
Last edited: