Please help. I have a domain website, and in that index html i want a hidden redirect to a site with an ip adres for example
http://123.233.44.55:81 (it's fake i know). this last site uses php and mysql. first i had the redirect with frames (because i want to show the site name instead of the ip adres. but it's not parsing any of the php variables. i have looked on the web and i found some stuff (also on here ) but no one exactly with the same problem as me. (weird?!), what i tried last time was this:
<HTML>
<TITLE> Site name</TITLE>
<frameset>
<frame name="tkb" src="
<?php
if (isset($_SERVER['QUERY_STRING']))
{
echo "http://123.456.78.90?".$_SERVER['QUERY_STRING'];
}
else {
echo "http://123.456.78.90";
}
?>">;
</frameset>
<BODY>
<NOFRAMES>
</NOFRAMES>
</BODY>
but it always goes to the first if, even when there's no query string. is this the right way?
if not: does anybody have the solution? or should i use global variables in php? but isn't that a security risk? or should i change my apache configuration? please help.
Greetings,
Klokkie (
[email protected])