Redirecting to a Directory

If you need to make a redirect, you can try this as well:
Code:
<SCRIPT language="JavaScript">
<!--
browserName=navigator.appName; 
browserVer=parseInt(navigator.appVersion);

  if ((browserName=="Netscape" && browserVer>=4) || (browserName=="Microsoft Internet Explorer" && browserVer>=4))    
  version="ver4";
  else
    version="other";

/* Version 4 browser URL */
if (version=="ver4")
  window.location="http://www.myname.com/name";

/* Other browsers URL */
else
  window.location="http://www.myname.com/name";

//-->
</SCRIPT>
Add it into the "HEAD" tags of the index page.
 
If you have php enabled on your server, you can create an index.php file in your main directory, and use the following code to redirect:

Code:
header("Location: http://www.myname.com/name/");
 
Back
Top