Follow devinemke's suggestion.
For clarification, the reason why your first approach doesn't work is that
admin/header.php
is a file name, and filenames don't have querystrings, but
http://www.example.com/file.php
is a URL, which can have querystrings attached. It helps to keep the difference in mind because they do work quite differently.