PHP site, want to enter a domain name, into another domain interface, online, etc.

Source: Internet
Author: User
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.

  • Related Article

    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.