将外部网站始终放在iframe中

将外部网站始终放在iframe中,iframe,Iframe,我有一个网站(用CakePHP制作,以备不时之需),在它的一个页面中加载另一个网站,更具体地说是一个Wordpress博客,在一个iframe中。加载的URL类似于myblogdomain.como/page\u-loaded.php 在iframe内浏览博客时,“正常”链接工作正常(阅读文章、查看评论、从Wordpress导航栏访问页面…)。但是,如果用户选择“编辑我的个人资料”选项,也在Wordpress博客内,则iframe内的整个页面将消失,显示加载iframe的同一页面,但没有ifra

我有一个网站(用CakePHP制作,以备不时之需),在它的一个页面中加载另一个网站,更具体地说是一个Wordpress博客,在一个iframe中。加载的URL类似于myblogdomain.como/page\u-loaded.php

在iframe内浏览博客时,“正常”链接工作正常(阅读文章、查看评论、从Wordpress导航栏访问页面…)。但是,如果用户选择“编辑我的个人资料”选项,也在Wordpress博客内,则iframe内的整个页面将消失,显示加载iframe的同一页面,但没有iframe的内容

我不知道是否会发生这种情况,因为当我开始加载的页面直接位于iframe的myblogdomain.com中时,“编辑我的个人资料”链接指向另一个文件夹(在本例中为myblogdomain.com/wp admin

是否有任何方法可以防止这种行为,并使iframe中发生的所有导航都在iframe中加载页面

编辑

这很奇怪。我上面解释的是昨晚发生的事情。今晨,在不改变任何内容的情况下,当我点击博客的任何链接时,我收到以下错误消息:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webadmin@kundenserver.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

你知道为什么会发生这种情况吗?

只是好奇,它是在Internet Explorer中吗?@skovalyov请查看我的编辑我认为这是因为iframe中的第三方cookie被浏览器阻止了。这种情况最常发生在Internet Explorer中,但基本上取决于浏览器的安全设置。这可以通过将P3P标题设置为WordPress站点的响应来解决。你可以在或谷歌上获得一些关于“iframe cookies”的见解。好的,我会的,谢谢。假设我解决了这个错误,那么我原来的问题呢?有没有办法强制页面始终加载到iframe中?