In the php website, you want to enter a domain name, enter the interface of another domain name, enter a domain name, enter the interface of another domain name, and enter the interface of another domain name.
Situation:
The other party has a website named www.abc.com/key/c.
Now: I want to enter www.xy.com to directly access the website content of the other party,
(You can change the domain name preparation file and php code)
How can this be achieved,
Thanks.
Reply to discussion (solution)
The simplest way is header ('Location: http://www.example.com /');
Thanks for upstairs. no, maybe it's not clear.
I want to enter www.xy.com to directly access the website content of the other party (www.a.com/key/a), and the displayed address is www.xy.com.
How can this be achieved,
You want to create a website to "cheat". It is estimated that the normal method is not good, otherwise it will be messy. Unless configured on the server, use forwarding.
Try iframe
Html framework
You want to create a website to "cheat". It is estimated that the normal method is not good, otherwise it will be messy. Unless configured on the server, use forwarding. + 1
Try iframe + 1 references which are not commonly used.
If this is so simple, what is the use of Internet domain names? Control how your target machine is opened.
Thanks for upstairs. no, maybe it's not clear.
I want to enter www.xy.com to directly access the website content of the other party (www.a.com/key/a), and the displayed address is www.xy.com.
How can this be achieved,
On the www.xy.com page, write
File_get_content ('www .a.com/key/a ');
You cannot obtain the content.
Thanks for upstairs. no, maybe it's not clear.
I want to enter www.xy.com to directly access the website content of the other party (www.a.com/key/a), and the displayed address is www.xy.com.
How can this be achieved,
On the www.xy.com page, write
File_get_content ('www .a.com/key/a ');
You cannot obtain the content.
However, the content obtained in this way may not work. for example, if the target website already has an ajax request, it will be a tragedy.
Only one iframe can be added for normal operation ..