2

I have a small question: from different domains, I'm forwarding via 301/302 to one distinct target domain.

On the target Server I have a running apache.

I need to know the origin Domain - so from which "source"-domain was the user forwarded to the target domain?!

Is this possible to achieve in PHP / Javascript?

Thanks in advance for your help and greetings from Germany

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

1 Answers1

0

Just add a URL Parameter in the redirection, e.g. [..].de/?h=origindomain.

Then you are able to readout the parameter with $_GET["h"].

ZygD
  • 22,092
  • 39
  • 79
  • 102