domain help

Discussion in 'Domain Names' started by hash899, Mar 30, 2008.

  1. #1
    to make make my problem easier to understand I will call my first domain "a.com" and my new domain "b.com". ok so I got a.com parked so its pointed to my root directory. now I got a new domain, b.com, I parked it so its pointed to my root directory too but I want to change it to point it to other directory within the root directory. how can I do that? I tried redirecting it to it but it will show the original domain after it loads the page. I would appreciate the help.
     
    hash899, Mar 30, 2008 IP
  2. hash899

    hash899 Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    any one???
     
    hash899, Mar 30, 2008 IP
  3. Codythebest

    Codythebest Notable Member

    Messages:
    5,764
    Likes Received:
    253
    Best Answers:
    0
    Trophy Points:
    275
    #3
    You need multi-domain hosting I think....
     
    Codythebest, Mar 30, 2008 IP
  4. conceptman

    conceptman Well-Known Member

    Messages:
    1,070
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #4
    hahaha that is domain redirection you will need a small script for that
     
    conceptman, Mar 30, 2008 IP
  5. tinner666

    tinner666 Peon

    Messages:
    334
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If I'm understanding the question correctly, you forgot to 'mask' the redirect.
     
    tinner666, Mar 30, 2008 IP
  6. hash899

    hash899 Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    how do i mask the redirect??? how can i make it so it works like any other domain???
     
    hash899, Mar 31, 2008 IP
  7. kohashi

    kohashi Well-Known Member

    Messages:
    1,198
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    140
    #7
    here is a quick fix since i know nothing of your setup:

    in index page of a.com put a code snippet that looks like this (if you can use php)

    
    <?php
    if($_SERVER["HTTP_HOST"]=="b.com"){
    echo "<script type=\"text/javascript\">";
    echo "window.location = \"http://www.a.com/sub-folder\"";
    echo "</script>";
    }
    ?>
    
    Code (markup):
     
    kohashi, Mar 31, 2008 IP
  8. samser_m

    samser_m Well-Known Member

    Messages:
    990
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #8
    well, is user keep javascript disabled. then?

    you can buy Managed DNS also. Price is around $1 per year.

    I feel you are not going to buy server space for both domain.

    try to use php header function only to simply redirect to the destination url.

    check out my site www.hayat.co.in or hayat.co.in, its simply redirecting to shop.hayat.co.in.

    code:

    <?php
    ob_start();
    header("Location: http://www.b.com");
    ob_end(); exit();
    ?>
     
    samser_m, Mar 31, 2008 IP
  9. hash899

    hash899 Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    thanks for the help. i'll try both pieces of codes and see which one works better ^___^
     
    hash899, Apr 1, 2008 IP