I am making a bot for a link sharing site. I am using the request external curl class and i have a dilemma that i think you guys could help with.
Query Variables appended on the end of a url such as ?something=234
I do not know how to handle these.
Problem: I do not need the same unique web page in my database using more than one url.
those two urls actually point to the same resource regardless of the query vars.
However Ex 2:
These two urls must have the query vars appended because they are not the same resource, and the query vars DO make a difference.
Further information: If one user shares a url for the first time, it will be stored in the database. If another user shares that same url later, the number of shares on the "already stored" url will increase. There are sites that rely on query vars, and there are others that do not.
How do i handle this problem?
I appreciate any help and responses you guys can provide me.