Domain Forwarding - HTML

Discussion in 'OT Technology' started by diesel, Apr 14, 2010.

  1. diesel

    diesel Guest

    I am curious about domain forwarding.. Lets say that I have pimp.com right now on godaddy and it has index.html as the file name with the code for the website.. Then lets say I registered pimpdaddy.com with netfirms and I am forwarding it to pimp.com because I am not ready to buy a hosting plan for pimpdaddy.com so just forwarding it where I have a hosting plan.. Is there a way I can forward any traffic coming from pimpdaddy.com within my HTML of index.html to maybe another file on pimp.com?
     
  2. Fifafever

    Fifafever OT Supporter

    Joined:
    Jul 22, 2006
    Messages:
    5,603
    Likes Received:
    14
    Location:
    San Diego, Canada
    Can you use .htaccess?
     
  3. diesel

    diesel Guest

    I would imagine that I can, is there a command that will do this?
     
  4. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Or use the referrer as a means of pointing you to the next page - one for pimpdaddy.com and one for everyone else.
     
  5. Fifafever

    Fifafever OT Supporter

    Joined:
    Jul 22, 2006
    Messages:
    5,603
    Likes Received:
    14
    Location:
    San Diego, Canada
  6. dazed

    dazed New Member

    Joined:
    Jun 13, 2004
    Messages:
    12,173
    Likes Received:
    0
    Location:
    new york city
    make this your index.html file

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <script language="javascript" type="text/javascript">
    <!--
    window.location="URL WHERE YOU WANT THE SITE TO GO";
    // -->
    </script>
    <meta http-equiv="refresh" content="1;url=URL WHERE YOU WANT THE SITE TO GO">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    <body>
    </body>
    </html>
     
  7. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Go reread the question.
     
  8. dazed

    dazed New Member

    Joined:
    Jun 13, 2004
    Messages:
    12,173
    Likes Received:
    0
    Location:
    new york city
    Still applies :dunno:

    Just set the URL in the meta.

    Its not an optimal solution as its not SEO friendly but it will work.
     
  9. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
  10. TomDlgns

    TomDlgns OT Supporter

    Joined:
    Oct 24, 2004
    Messages:
    60,861
    Likes Received:
    310
    many places where you buy your domain names let you edit the name servers and stuff like domain forwarding. i know go daddy does this, but i also know that not everyone buys their domains from go daddy.

    even w/o a hosting plan, godaddy lets you mange the domain name within the domain manager. but i dont know about netfirms or any other provider.
     
  11. 95vr4

    95vr4 OT Supporter

    Joined:
    Oct 6, 2004
    Messages:
    2,513
    Likes Received:
    0
    Location:
    Weddington, NC
    These methods require a host, he said he doesn't have hosting.


    As far as I know, you can't do a URL redirect at the DNS level, although like tom said, it's a service most registrars offer for free.

    I'd find a new host if they don't allow multiple domains. Lots of hosts allow unlimited domains.
     
  12. 95vr4

    95vr4 OT Supporter

    Joined:
    Oct 6, 2004
    Messages:
    2,513
    Likes Received:
    0
    Location:
    Weddington, NC
    Worst way you could possibly do it. Use php (or asp) instead and do it server side.
     

Share This Page