Web Hosting FAQs

  Home arrow Web Hosting FAQs arrow Page 4 - Why Do You Need to Buy Multiple Domain...
Web Hosting Articles  
Web Hosting FAQs  
Web Hosting How-Tos  
Web Hosting News  
Web Hosting Reviews  
Web Hosting Security  
Weekly Newsletter 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Contact Us 
Site Map 
Privacy Policy 
  >>> SIGN UP!  
  Lost Password? 

Why Do You Need to Buy Multiple Domains?
By: KC Morgan
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4

    Table of Contents:
  • Why Do You Need to Buy Multiple Domains?
  • Buying Domain Names
  • Multiple Domains
  • Redirecting Your Traffic Across Domains

  • Rate this Article: Poor Best 
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article




    Why Do You Need to Buy Multiple Domains? - Redirecting Your Traffic Across Domains

    (Page 4 of 4 )

    There are several simple scripts you can use if you want to direct traffic from one of your domains to another (respectdtech vs. respectdatech, for instance). Use one of these codes on the page youíd like to re-direct:

    1. ColdFusion

    <.cfheader statuscode="301" statustext="Moved permanently">

    <.cfheader name="Location" value="http://www.respectdatech.com">

    1. PHP


    Header( "HTTP/1.1 301 Moved Permanently" );

    Header( "Location: http://www.respectdatech.com" );


    1. ASP

    <%@ Language=VBScript %>


    Response.Status="301 Moved Permanently"

    Response.AddHeader "Location","http://www.respectdatech.com/"


    1. ASP .NET

    <script runat="server">

    private void Page_Load(object sender, System.EventArgs e)


    Response.Status = "301 Moved Permanently";




    1. JSP (Java)



    response.setHeader( "Location", "http://www.respectdatech.com/" );

    response.setHeader( "Connection", "close" );


    1. CGI PERL Redirect

    $q = new CGI;

    print $q->redirect("http://www.respectdatech.com/");

    1. Ruby on Rails

    def old_action

    headers["Status"] = "301 Moved Permanently"

    redirect_to "http://www.respectdatech.com/"


    Your misspelled domain need only have one of these scripts in order to send traffic in the right direction. When youíre moving visitors from one URL to another, itís important to be careful. You donít want to use META refresh, and you donít want to create a mirror site for moving traffic. The extra domain has only one purpose: keeping your traffic in the right place. Use the right codes to direct them, and your multiple domains should work beautifully together.

    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.


    - Top Drupal Modules for E-Commerce
    - The Benefits of Cloud Computing
    - What Does Cloud Computing Offer?
    - Why Do You Need to Buy Multiple Domains?
    - What is Cybersquatting?
    - Web Hosting 101
    - Should You Buy Domains Solely For Their PR?
    - Designing Flash Websites: Pros and Cons
    - Reseller Web Hosting: Frequently Asked Quest...
    - Blogs: Frequently Asked Questions
    - Database Hosting FAQ
    - Reseller Web Hosting FAQ
    - Virtual Private Servers FAQ
    - Colocation Web Hosting FAQ
    - E-Commerce Hosting FAQ

    Developer Shed Affiliates


    © 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap