<html>
<iframe src="iWantToBeTheParent.html" />
</html>
I think this is a JavaScript task, it would be nice to handle the redirection with htaccess though since my code will inside an iframe I'm looking for a method that initiates from inside the iframe source which would make the iframe url load as the parent.
I only have access to the iframe source page's html.
Would it be possible to send a 301 HTTP redirect as well?
EDIT: I could use php to print out the url of the iframe page as a JavaScript variable if needed.