Hello I have a problem with header('Location: http://www.example2.com/'); while there is a query string.
Ok I will make the question easy to understand:
now I have a domain name http://example1.com/?url=url I want when someone want to access example1.com it redirects him to example2.com but if he types example1.com/?url=url nothing will happen so how can I do that please and thanks in advance
if (count($_GET) > 0) { ... }if you want to check if the request has any parameters.