By:
MichaelAn
Rank:
Forum Addict
Topics:
56
From:
Denmark
|
Added:
06/13/2009 - 01:54 PM
When you click one of the links to my webcams, found on the Cameras page, it will open http://bld-live.dk/index.html?cam=1 wich will return 404 because im running the website on another server than the one buildin AbelCam.
If instead it was trying to open http://bld-live.dk/?id=20&cam=1 it would open the site, and show the right camera.
Maybe adding a way to define what should be opened would be cool? so default could be index.html?cam=<id> where it sould replace the <id> with the cam number. It would then be possible to make it like this ?id=20&cam=<id> and by that let others have a way to send people directly into the custom pages, with the right cam online.
|
By:
sse
Rank:
Forum Addict
Topics:
73
From:
n/a
|
Added:
06/14/2009 - 10:29 AM
Michael, I doubt that many users will have a use for your proposal.
Why don't you just add a index.html page which will take care of the redirection?
Try this one:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Test Redirect</title>
</head><body>
<script type="text/javascript">
if (window.location.search != "") {
this.location="http://bld-live.dk/" + window.location.search + "&id=20";
} else {
this.location="http://bld-live.dk/?id=20";
}
</script>
</body>
</html>
|