I’m fairly sure you can’t (though I’m open to be proven wrong). Far far as I’m aware, the anchor links are completely ignored by anything server-side (eg apache or php). I’ve tried similar things in PHP and failed.
I just requested a page on my dev machine, with an hash tag in the url. Looked in the apache log and it did not register the hash.