subdomain redirection problem.... help plz...

Discussion in 'Site & Server Administration' started by deebong, Dec 20, 2007.

  1. #1
    hello geeks,

    I hope i post at the right thread...

    Anyway my question is related with subdomain redirection.

    I want to redirect forum.mysite.com to mysite.com/forum without showing mysite.com/forum in the address bar.

    I've already created the subdomain like...

    forum.mysite.com

    and I've set redirection to mysite.com/forum from cPanel

    now I need to know how to keep the subdomain URL in browser address bar

    I guess it can be done via .htaccess file but I really dunno the code for it...

    or

    is there a way to set it via cPanel? ;)

    someone plz guide..

    Thanx!
     
    deebong, Dec 20, 2007 IP
  2. chriswick

    chriswick Peon

    Messages:
    907
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could use a frame for the index of that sub, I wouldn't change what you don't understand in your Cpanel.

    <iframe width="100%" height="100%" frameborder="0" src="http://sub.example.com/yourpage.html" name="NAME HERE"></iframe>
    
    HTML:
     
    chriswick, Dec 22, 2007 IP
  3. bturkay

    bturkay Active Member

    Messages:
    75
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    98
    #3
    Just create the subdomain at cpanel as forum.

    Then it will create a folder public_html/forum

    You can upload your files under this directory.

    Note:Be sure that your cPanel them is default cPanel theme..I couldnt do this via RVSkin theme.When i changed it to default x it worked.
     
    bturkay, Dec 23, 2007 IP
  4. deebong

    deebong Well-Known Member

    Messages:
    1,715
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    138
    #4
    This is not actually I'm asking for.... ;)

    I'm looking for some .htaccess code which can keep the address bar URL as it is... like forum.mysite.com (instead of mysite.com/forum)

    anyway thanx for ur idea..
     
    deebong, Dec 23, 2007 IP
  5. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If the URL changes, then you have a redirect and you have a redirect because you didn't correctly configure the subdomain in cPanel.

    Go to the "Subdomain" (or "Subdomain Management" or "Subdomain Maintenance") area in your cPanel and check the options you have selected for the subdomain. If a redirection is defined, remove it.

    In most cases, cPanel takes care of the changes in .htaccess. You don't have to do it by yourself.

    Jean-Luc
     
    Jean-Luc, Dec 23, 2007 IP
  6. deebong

    deebong Well-Known Member

    Messages:
    1,715
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    138
    #6
    @ Jean-Luc Thanx, will check it now...
     
    deebong, Dec 23, 2007 IP