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?
精彩评论