I’m trying to figure out how to append a random query string to the end of a URL the first time someone visits my page. For example, say someone navigates to my site at, http://www.example.com. If everything goes according to plan, they’ll hit my index.php file, the URL in the address bar will be http://www.example.com, and everything will be hunky dory.
However, what I would like is for when that person types http://www.example.com into their address bar and hits go, they are directed to my index.php file, but the URL is changed to:
http://www.example.com/?fromdatabase=randomthing
I have the database all setup and I can get random values from it no problem, the problem is changing the URL so that the random values are appended before the page loads.
Add this to the beginning of your index.php
Greetings,
Fredyy