简体   繁体   English

在您的网站上设置htaccess iframe

[英]set an htaccess iframe on your website

When I visited the apple site I noticed that there was an images.apple.com which is exactly the same as the homepage, so how do they to it. 当我访问Apple网站时,我注意到有一个images.apple.com与主页完全相同,因此如何处理它们。 I don't think they just upload all the files of apple.com to images.apple.com like .html and .php I have seen some nice .htaccess earlier so I think they did it with the htaccess, so how can I do this. 我不认为他们只是将apple.com的所有文件都上传到ima​​ges.apple.com(例如.html和.php),我之前看过一些不错的.htaccess,所以我认为他们是使用htaccess做到的,所以我该怎么办这个。 This doesn't work good, it will redirect me to my own page: 这不能很好地工作,它将把我重定向到我自己的页面:

When you go to mij.sakesalverda.nl it will redirect you to sakesalverda.nl how can I solve this that it just become something like an iframe but still changing the url (which doesn't with an iframe) like apple.com and not this: 当您转到mij.sakesalverda.nl时,它将重定向到转到saessalverda.nl。我该如何解决它,它变成了类似iframe的东西,但仍然更改了apple.com之类的网址(不包含iframe)而不是这个:

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !=94.213.50.102
RewriteRule ^ http://www.sakesalverda.nl [L]

May they did it with javascript or jQuery... 可以用JavaScript或jQuery来做...

They probably have http://www.apple.com/ and http://images.apple.com/ pointing to the same document root. 他们可能具有指向同一文档根目录的http://www.apple.com/http://images.apple.com/

Note that you can get to identical content at both places: 请注意,您可以在两个地方获得相同的内容:

and

There's probably no htaccess trickery here. 这里可能没有htaccess的骗术。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM