how can i redirect the domain?

Discussion in 'Programming' started by i_am_dhaval, May 23, 2010.

  1. #1
    i_am_dhaval, May 23, 2010 IP
  2. mrdo

    mrdo Well-Known Member

    Messages:
    1,552
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    138
    #2
    User url forward in domain control panel or hosting control panel.
     
    mrdo, May 23, 2010 IP
  3. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
  4. samser_m

    samser_m Well-Known Member

    Messages:
    990
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    You may use cPanel or write a simple php script, should work perfectly!

    ob_start();
    header("Location: http://josh18.in.com");
    ob_end_flush();exit();

    upload on http://www.josh18.com.
     
    samser_m, May 25, 2010 IP
  5. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #5
    we are using asp.net
     
    i_am_dhaval, May 26, 2010 IP
  6. windy

    windy Active Member

    Messages:
    1,093
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #6
    or domain control panel just use url forward or use addon domains in your hosting cpanel
     
    windy, May 26, 2010 IP
  7. CaseyM

    CaseyM Peon

    Messages:
    289
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You should use Domain Forwarding from the control panel of your hosting company, call / email customer care to check if they offer this feature if you cannot find it. In the mean time, if you are using asp.net wth c#, type the following in your Page_Load method in your codebehind;

    Response.Redirect("http://josh18.in.com");
     
    CaseyM, May 26, 2010 IP
  8. i_am_dhaval

    i_am_dhaval Well-Known Member

    Messages:
    1,364
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    138
    #8
    i have using this

    is this ok as seo ?

    --------

    <script language="JavaScript">
    <!--
    if( -1 == location.href.
    toLowerCase().
    indexOf('mydomainA.com') )
    {
    location.href = 'http://mydomainA.com';
    }
    // -->
    </script>
     
    i_am_dhaval, May 27, 2010 IP
  9. rkstech

    rkstech Active Member

    Messages:
    195
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #9
    it all depends on what level you wish to use the redirect

    try goolge for a more refined answer, you can use 301 redirect or HTML redirect or a domain redirect,

    Choice is yours
     
    rkstech, May 28, 2010 IP
  10. diveloper

    diveloper Active Member

    Messages:
    171
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #10
    url forwarding is what I would suggest, failing that put a redirect script on the page load of the website so that as soon as a user goes to the site, the first code to run is the redirect.
     
    diveloper, Jun 1, 2010 IP