Active Web Hosting Logo
FAQ Index Getting Started Your Account Domains Web Site & Hosting E-Mail
FTP CGI PHP Scripting MySQL Database Script Installation Legal Information

Pointing A Secondary Domain To Your Domain / Web Space

It is possible to have more than one domain reference your site. For example, you can have your visitors use either mywebsite.com or myotherdomain.com to get to mywebsite.com. To do this, each domain that leads to your web site must be hosted and online. Then you can have it point to your current web site. There are a couple methods to accomplish this.

Redirect Method

In the web site directory of each domain you have to have an index.html file. Copy and paste the following code into your text editor. Save it as index.html and upload the file via FTP to the domain that you want to redirect to your main site (do not add this as your index.html to the web site you are redirecting to (ie. your main web site).

<META HTTP-EQUIV="refresh" content="0; URL=http://yourwebsite.com">

Replace the highlighted text with the URL to your main web site domain.

Frames Method

This method is only ideal for those who do not depend too much on advertising. Frames are not recommended for those who want search engines to spider their site to obtain more hits. If you wish to use this method, put the following code into an index.html file and upload it to the domain that you want to point to your main web site. Replace the highlighted code to fit your needs. Note that the frame src tags appear split up into two lines below. Be sure you have each tag on line line.

<html>
<title>Web Site Title</title>
<frameset cols="150,*" border=0 frameborder=0 framespacing=0>
<frame src="http://yourwebsite.com/menu.html" name="menu" marginwidth=5 marginheight=5 scrolling=auto>
<frame src="http://yourwebsite.com/main.html" name="main" marginwidth=5 marginheight=0 scrolling=auto>
<noframes>
If you would like search engines to find your page, enter a site description here, and a link to the main web site. Also put a notice that this site requires a frames-compatible web browser.
</noframes>
</frameset>
</html>

JavaScript Method

This method may not work if a visitor has JavaScript turned off in their browser. However, JavaScript is commonly used on many web pages. Cut and paste the following code into your text editor, save the file as index.html and upload it to the domain(s) that will point to your web site. Do not upload this code to your main web site. Replace the highlighted to suit your site needs.

<html>
<head>
<title>Web Site Title</title>
<script language="JavaScript">
<!--
window.location="http://www.yourwebsite.com/";
// -->
</script>
</head>
</html>



Home - Support - Management - About Us
... Active Web Hosting, 213 N Stephanie St G318, Henderson, NV 89074 ...
(702) 449-2337