: Site showing up in an iframe, how to get rid of it? I have a client I installed a WordPress site. I went to try to log in and install a new security plugin, and the site is being displayed
I have a client I installed a WordPress site. I went to try to log in and install a new security plugin, and the site is being displayed in an iframe. When I navigate to sub pages, the page URL no longer displays in the URL bar of the browser. I've tried Chrome and Firefox (I'm on a Mac), and none of my other WordPress installs are having this problem.
The login page for the site doesn't display at all, just a blank page with no content and an error message in the console that says "Refused to display 'login page name' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'." I have installed WordPress in a sub directory rather than in the site root, but I set all of my installs up this way.
How do I find out where this iframe is coming from? My desired end result is to get rid of it entirely.
More posts by @Berryessa370
2 Comments
Sorted by latest first Latest Oldest Best
As I mentioned in my comment, this behavior was the result of attempting to log in to the site at an address that was parked on the site, rather than at the main URL of the site. Thanks for the assistance and apologies for the confusion.
Your page code consists entirely of:
<html>
<head><title>DOMAIN.COM</title><meta name="keywords" content=""</head>
<frameset rows="100%", *" border="0" frameborder="0"><frame src="http://domain.com" name="DOMAIN.COM"></frameset>
</html>
This is loading the non-www version of the site as an iframe within the www version. It's not even doing that 100% correctly as the Meta Keywords tag isn't closed.
You need to check with both your hosting provided & domain provided to determine if one or the other is doing this. As mentioned in the comments, this is often called a "framed redirect" or "redirect with masking".
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.