Redirection Help needed!

Discussion in 'HTML & Website Design' started by ShReYaS, Jul 1, 2007.

  1. #1
    Hey guys I have a forum installed in the /forum directory in my site and I need to redirect the domain to this folder. When I use redirection in Cpanel it says something about loop..

    Please help
     
    ShReYaS, Jul 1, 2007 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    Are you on apache server?
     
    Richie_Ni, Jul 1, 2007 IP
  3. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #3
    There are many ways to redirect..here's a simple one..
    Create a .php file in the root folder and write this code in the file,
    
    <?php
    header("Location: http://www.yourdomainname.com/forums");
    ?>
    Code (markup):
    or use this code in the head section of an html file in the root folder.
    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/forums">
    Code (markup):
     
    nwk, Jul 1, 2007 IP
  4. ShReYaS

    ShReYaS Peon

    Messages:
    1,945
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks,
    Will do it now and reply
     
    ShReYaS, Jul 1, 2007 IP
  5. ShReYaS

    ShReYaS Peon

    Messages:
    1,945
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ShReYaS, Jul 1, 2007 IP
  6. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #6
    Keep it up... Post some more topics and make it a big one..Good Luck..:)
     
    nwk, Jul 1, 2007 IP
  7. ShReYaS

    ShReYaS Peon

    Messages:
    1,945
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Is just opened...Not yet planned what to do with it...
     
    ShReYaS, Jul 1, 2007 IP
  8. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #8
    Good to know you've solved it.
    You can add the following code to your .htaccess file if you are on apache server for the same effect.
    
    Redirect / /forum
    Code (markup):
     
    Richie_Ni, Jul 1, 2007 IP