JordanReich
02-06-2009, 08:03 PM
Hey guys I'm trying to make it so that you can only use a certain page within an iframe and not outside of the iframe (I.E. the forums) for some reason this code however is stumping me.
<?php
if ($_SERVER["HTTP_HOST"] != "www.test.com") {
header("Location: http://www.test.com".$_SERVER["PHP_SELF"]);
}
?>
Could someone explains how it works.
I want to make it that whenever someone enters http://www.uba-clan.com/z5y9ve that they are redirected to http://www.uba-clan.com/v3/secureforum.php which in turn is an iframe that access's the link above from within the iframe however the browser URL will say the correct thing.
Is this possible with this code, and if so could someone input that into the coding so I can get how it would look as I cant seem to get it to work.
Thanks
<?php
if ($_SERVER["HTTP_HOST"] != "www.test.com") {
header("Location: http://www.test.com".$_SERVER["PHP_SELF"]);
}
?>
Could someone explains how it works.
I want to make it that whenever someone enters http://www.uba-clan.com/z5y9ve that they are redirected to http://www.uba-clan.com/v3/secureforum.php which in turn is an iframe that access's the link above from within the iframe however the browser URL will say the correct thing.
Is this possible with this code, and if so could someone input that into the coding so I can get how it would look as I cant seem to get it to work.
Thanks