Forum Moderators: phranque
i.e. mysite.com
is to direct them to a particular port:
i.e. mysite.com:5555
I tried a couple of things with no luck and just know it cannot be that hard. What am I missing - what is the simpleway to do this?
Thanks.
I want: mysite.com:5555
I get: mysite.com/:5555
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<script language="JavaScript">
<!--
var sThisURL = unescape(':5555');
function doRedirect()
{
actualRedirect();
}
function actualRedirect()
{
setTimeout("top.location.href = sThisURL", 500 );
}
// -->
</script>
<script language="JavaScript1.1">
<!--
function actualRedirect()
{
top.location.replace(sThisURL);
}
if ("MSIE" == navigator.appName )
doRedirect();
// -->
</script>
</head>
<meta target="top" content="1;url=:5555" http-equiv="refresh">
<body marginwidth="0" leftmargin="0" bgcolor="#efeee9" topmargin="0" marginheight="0" onLoad="doRedirect()"></body>
</html>
Thanks for the help.
If you want to use an Apache server-side mechanism to do the redirect, see Apache mod_alias -- specifically, the Redirect [httpd.apache.org] directives, or Apache mod_rewrite [httpd.apache.org]. More references are cited in our forum charter [webmasterworld.com].
Jim