How does PHP get the jump URL?

Source: Internet
Author: User
How does PHP get the jump URL? $ _ SERVER [& quot; HTTP_REFERER & quot;] can only get the previous URL with a hyperlink, but it cannot do anything to jump to the URL. what I want is: I direct the domain name a.buoyeasy.com to the home page of fw.yahei.netfw.yahei.net using the cname record. how does PHP get the jump url?
$ _ SERVER ["HTTP_REFERER"] can only get the previous URL over with a hyperlink, but cannot jump over the URL

What I want is:

I direct the domain name a.buoyeasy.com to fw.yahei.net using the cname record.

The homepage of fw.yahei.net is as follows:
PHP code
  $url = $_SERVER["HTTP_REFERER"];echo $url;


When you access a.buoyeasy.com, the system automatically jumps to fw.yahei.net. then, the home page of fw.yahei.net displays the redirected URL.

The current results are not displayed. what should I do ???

------ Solution --------------------
Echo $ _ SERVER ['request _ URI '];
Try
------ Solution --------------------
You can print $ SERVER to see if there are any signs?


The domain name alias cannot be found like this.
------ Solution --------------------
This should be about DNS (you said you didn't get the strength of DNS ).
Let's talk about your ultimate goal or a detailed requirement!
------ Solution --------------------
I 'd like to know this question too.
------ Solution --------------------
Hope experts can solve this problem!
------ Solution --------------------
If you use cname, it is better to directly add jump records
Direct the domain name a.buoyeasy.com to the http://fw.yahei.net/index.php with the tourl record? Domain = a.buoyeasy.com
------ Solution --------------------

------ Solution --------------------
Echo $ _ SERVER ['http _ host']. $ _ SERVER ['request _ URI '];

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.