Since PHP is processed serverside, the URL isn't dynamic one it's sent to the client. Pati's JS answer dynamically changes the URL on the client. Snake14 Nov 11 '18 at 15: 52Apr 18, 2018 301 or 302 Redirection With PHP. I'm considering using the following code during a website launch phase to show users a down for maintenance page while showing me the rest of the site. random redirect php
Definition and Usage. The rand() function generates a random integer. Tip: If you want a random integer between 10 and 100 (inclusive), use rand (10, 100). Tip: The mtrand() function produces a better random value, and is 4 times faster than rand().