Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by sbruyneel

  1. I Scott,Thank you for your code but this is not really my question.I have one webspace and 3 domain names linked to the index.html of my webspace. So if user want to go on one of my domain names, he will come on the same index page.I would like to find a code (html or java) that grab the domain name typed by the customer in the browser (one of the three domain name I have) and in function of the domain name, the index page will be redirected to different pages in the website.Regards
  2. I found two codes for redirecting my index page to anther page automatically (one in html and one in java)IN HTML<HTML> <HEAD> <!-- Send users to the new location. --> <TITLE>redirect</TITLE> <META HTTP-EQUIV="refresh" CONTENT="10;URL=http://www.netmechanic.com"> </HEAD> <BODY> This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, <a href="http://www.netmechanic.com"> click here</a>. </BODY> </HTML> IN JAVA<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><title>Document sans nom</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><HEAD><script language="JavaScript"><!--window.location="http://www.aimsoptronics.be";//--></SCRIPT></HEAD><body></body></html>But I would like to find a code which redirect to different pages in function of the domain name that the user typed. For exemple, if I have three domain names and one web space and if a customer type www.sitea.com the index page will redirect to a specified page and if he types www.siteb.com, the index page will redirect to another specified page. Can you help me? Thanks
  • Create New...