开发者

PHP/Javascript iFrame redirect SSL error

I have a problem with a redirect I 开发者_JAVA百科am trying to do from within a iframe, I keep getting a SSL certificate error, is there a specific way should be redirecting from within an iframe? I am usig this code,

echo "<script type='text/javascript'>top.location.href = '$redirect';</script>";

I have also tried a standard PHP header redirect, but that doesn't work either.


Alternatively try

window.open('$redirect','_top');

It looks like you are going to break the back button too. I would do

top.location.replace('$redirect');


Why is the url in $redirect? Does the url match the exact certificate?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜