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 '];