In the php website, you want to enter a domain name, enter the interface of another domain name, and wait online.

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

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.