Which WP version?
Do you have any “framebuster’ plugin activated?
ok I fixted the login problem but I’m still having the redirect one everytime I try and edit a post or page.
1. Look for something like this in your Plugins list:
Frame Buster
2. Look for something like this in the <head> portion of your page source:
<script type="text/javascript">
if (top.location != location)
top.location.href = document.location.href;
</script>
Either can cause the issue you’re having.
yep I have the javascript script,one of the plugin required it for anti cheat reasons but Ill take it off 🙂
Thanks so much 😀
Kafkaesqui! You just solved MY problem, too! I was having the same issue as Soprano and thankfully, found this thread. I turned off a plug-in I had that prevented my site from being loaded into a frame, and it fixed the problem! Thanks so much! 🙂
If anyone else finds resolution to this problem here:
I’m aware Semiologic’s frame buster plugin was updated some time ago to deal with this problem (I can’t say about any other frame buster plugins), so that would be worth a look.
And for those who do this manually, here’s what I use in my <head> element:
<?php if(strpos($_SERVER['HTTP_REFERER'], get_bloginfo('wpurl')) === false) : ?>
<script type="text/javascript">
<!--
if (top.location != location)
top.location.href = document.location.href;
//-->
</script>
<?php endif; ?>
The PHP if checks whether the refer comes from your site or not. If it doesn’t the javascript frame buster code is added.