I could not find a way to stop the redirection. But i found a way to reverse the direction with some php scripts.
Step 1: I replaced my index.html from web (origional asus website) with the following code:
Code:
<head>
<meta http-equiv="refresh" content="0; URL=http://www.yourdomain.com:8082">
</head>
<body>
</body>
</html>
Step 2: I use lighttpd (8082) with php and my index.php looks like this:
Code:
<?php
$user = getenv("REMOTE_ADDR");
$host = getenv("HTTP_HOST");
// when you enter your domain form outside (WAN)
if($user == "192.168.0.3") {
if($host == "www.yourdomain.com") { $url = "local_index.php"; } // $url = waar hij heen redirect
elseif($host == "www.yourdomain.com:8082") { $url = "local_index.php"; }
else { $url = "local_index.php" ; }
}
//When you enter your domain from the insite (LAN)
else {
if($host == "www.yourdomain.com") { $url = "remote_index.php"; } // $url = waar hij heen redirect
elseif($host == "www.yourdomain.com:8082") { $url = "remote_index.php"; }
else { $url = "remote_index.php" ; }
}
// Ga naar de $url toe..
Header("Location: $url");
?>
Step 3: whe i reboot the router the index.html i restored by the router. I removed this behavior by adding the following code to rc.local:
Code:
# Restore Webserver Redirection
cp /shares/MYVOLUME1/MYSHARE1/run/index.html /shares/MYVOLUME1/MYSHARE1/web
Step 4: to use yourdomain.com local, you have to change your "host" file in windows. Use the following path: windir/system32/drivers/etc/host.
Change that file, by adding a yourdomain.com direction to your routers IP.
Sollie.