I need to add several checks when user manually inputs URL with params on my site.
For example, if user types mysite.com/?random=text I want to redirect him to custom page (let’s imagine that I forbid using var random and I want users to be redirected in such cases).
How can I do this in WordPress?
2
Answers
You can do that with JavaScript, it’s not really related to WordPress:
It’s also possible with php, but I think JS is the easiest way.