PHP site, want to enter a domain name, into another domain interface, online, etc.
The situation is:
The other party has a website called www.abc.com/key/c
Now required: I would like to enter www.xy.com directly into each other's website content,
(You can change the name of the configuration file and PHP code to change the method)
How does this come true,
Thanks.
Reply to discussion (solution)
The simplest method is the header (' location:http://www.example.com/');
Thanks for the upstairs, no, maybe I didn't say it clearly.
I would like to enter www.xy.com can directly enter the other side (www.a.com/key/a) of the site content, and display the address is www.xy.com
How does this come true,
You want to do a "cheat" site Ah, it is estimated that the normal method is not possible, otherwise it is a mess. Use forwarding unless it is configured on the server.
Try the IFRAME.
Use the HTML framework to do
You want to do a "cheat" site Ah, it is estimated that the normal method is not possible, otherwise it is a mess. Use forwarding unless it is configured on the server. +1
Try the IFRAME +1 reference not very often.
What's the use of the Internet domain name if it's so easy to implement? Control your target machine how to open it when you love it.
Thanks for the upstairs, no, maybe I didn't say it clearly.
I would like to enter www.xy.com can directly enter the other side (www.a.com/key/a) of the site content, and display the address is www.xy.com
How does this come true,
So you write on the www.xy.com page.
File_get_content (' www.a.com/key/a ');
No, you can get the content.
Thanks for the upstairs, no, maybe I didn't say it clearly.
I would like to enter www.xy.com can directly enter the other side (www.a.com/key/a) of the site content, and display the address is www.xy.com
How does this come true,
So you write on the www.xy.com page.
File_get_content (' www.a.com/key/a ');
No, you can get the content.
But the content is likely to not work, such as the target site would have AJAX requests, then the tragedy.
To allow normal operation, only add an IFRAME.