1

I am facing this (I don't know what to call this) situation I have a URL like

site.com/?tag=value&other=1&more=2

the problem is that when i

var_dump($_GET);
// prints
array( 'other' => '1', 'more' => '2');

for some reason the parameter tag is missing from $_GET array.

any ideas? the server request_uri is

'REQUEST_URI' => string '/site-com/?other=1&more=2'

its even missing in $_SERVER['REQUEST_URI'] and the server is

Linux 4.4.216-1.el6.elrepo.x86_64 x86_64
PHP 7.3
 

Thanks

codedudey
  • 369
  • 3
  • 10

1 Answers1

2

This answer sumerize the discussion in comment.

This url 'REQUEST_URI' => string '/site-com/?other=1&more=2'

suggests that there is some url rewriting somewhere, it can be done by the framework, web server settings (or .htaccess, virtualhost).

In this case, the queston was not enough clear, 'tag' is only an example, in fact in this OP 'tag' is utm_campaign and Godaddy filters these utm_ tags.

Dri372
  • 1,275
  • 3
  • 13