How to Redirect Homepage to sub-domain ???

Discussion in 'HTML & Website Design' started by naviarora2007, Jan 1, 2009.

  1. #1
    Hello i want to redirect the homepage of my site www.icbse.com to subdomain like papers.icbse.com !

    Please tell me what should i do ??:confused:
     
    naviarora2007, Jan 1, 2009 IP
  2. himtuna

    himtuna Member

    Messages:
    225
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #2
    himtuna, Jan 1, 2009 IP
  3. improvingtheweb

    improvingtheweb Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you use the PHP method, you should use this insetead:

    
    <?php 
    header('Location: http://subdomain.icbse.com', true, 301); 
    ?>
    
    Code (markup):
    Which makese sure it adds the 301 (permanently redirected) header for google and other search engines.
     
    improvingtheweb, Jan 1, 2009 IP
  4. himtuna

    himtuna Member

    Messages:
    225
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #4
    And if it permanent then you can forward the domain to your subdomain at your registrar ( if he provided DNS managment or ask you webhost to do so). it would be for say faster than above methods.
     
    himtuna, Jan 1, 2009 IP
  5. kazanova_ks

    kazanova_ks Active Member

    Messages:
    99
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #5
    you cann do that and from cpanel so justt make your domain to "point" in your subdomain.
     
    kazanova_ks, Jan 1, 2009 IP
  6. fairuz.ismail

    fairuz.ismail Peon

    Messages:
    232
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    or if you have only static html pages, use this instead

    Place the following HTML redirect code between the <HEAD> and </HEAD> tags of your HTML code.

    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/subdomain/">

    The above HTML redirect code will redirect your visitors to another web page instantly. The content="0; may be changed to the number of seconds you want the browser to wait before redirecting.
     
    fairuz.ismail, Jan 1, 2009 IP
  7. himtuna

    himtuna Member

    Messages:
    225
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #7
    a little anoying hack
    <meta HTTP-EQUIV="REFRESH" content="0; url=mailto:contact@im.com">
    let me know if it works
     
    himtuna, Jan 1, 2009 IP