How does PHP obtain the redirection path?

Source: Internet
Author: User
How does PHP obtain the redirection path? For example, if www.a.com is redirected to www. B .com through headerlocation, how does www. B .com obtain the redirection to determine whether the access was redirected by www.a.com? How does PHP obtain the redirection path?
For example, if www.a.com is redirected to www. B .com through header location, how does www. B .com obtain the redirection path to determine whether the access was redirected by www.a.com?

Reply content:

How does PHP obtain the redirection path?
For example, if www.a.com is redirected to www. B .com through header location, how does www. B .com obtain the redirection path to determine whether the access was redirected by www.a.com?

Can php retrieve a referer from the header?

Js has this referer, which is the source of access. you can use it after Baidu.

Try to get it through $ _ SERVER ['http _ referer ']

The answer is that it cannot be obtained.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.