|
Re-directing a sub-domain to a web-page |
Top Previous Next |
|
Sometimes for marketing purposes, it is useful to be able to re-direct a subdomain to a particular page on your website. For example, you may create a web page in your document library describing a big event that you are hosting at your club, and you many want to temporarily create a subdomain of the form http://mybigevent.myclub.com that you will use for purposes of print or radio advertising to promote the event. When people visit this URL enabled by the subdomain, you will want them to be directed straight to the page on your existing web-site that describes the event. This can be accomplished via an HTTP re-direct. The steps in creating such an HTTP re-direct are:
http://myclub.com/view_doc_by_id.php?edit=1&inpage=true&id=38
<HTML> <HEAD> <TITLE>Big Event Title</TITLE> <META http-equiv="refresh" content="0; url=”http://myclub.com/view_doc_by_id.php?edit=1&inpage=true&id=38"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080"> You are being re-directed to <a href=" http://myclub.com/view_doc_by_id.php?edit=1&inpage=true&id=38">The Big Event</a>. Please click the link if you fail to be re-directed automatically. </BODY> </HTML>
The HTML above will result in the index.html file associated with the subdomain automatically re-directing visitors to your page describing the hypothetical big event stored in the document library of your regular web-site. You may use this same technique to re-direct to any other web-sites as well. |