The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I add a front page to my forum?

Discussion in 'General Discussion' started by Thudner Gaming, Jun 27, 2006.

  1. Thudner Gaming

    Thudner Gaming Registered

    Joined:
    Jun 10, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I want to add an main page that brings you to the forum how do I do that?:)
     
  2. WEB-PROS

    WEB-PROS Well-Known Member

    Joined:
    Feb 19, 2006
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    Have a index.php file that includes


    header "Location : forums/"


    forums/ being the directory of your forum.


    Really this question should not be asked on here, i felt kind.
     
  3. avijit

    avijit Well-Known Member

    Joined:
    Jul 26, 2004
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    You need to setup a redirect to the domainname.com/forum
     
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    [being_pedantic]
    HTTP/1.1 requires the 'location' header to contain an absolute URI and not a relative one.

    Furthermore, the correct usage is:

    Code:
    header("Location: URI");
    http://uk.php.net/manual/en/function.header.php
    [/being_pedantic]
     
  5. WEB-PROS

    WEB-PROS Well-Known Member

    Joined:
    Feb 19, 2006
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    You are correct however i have used it without full urls and it has worked correctly. However you are totaly correct. :mad: :D
     
  6. ShockHosts

    ShockHosts Well-Known Member

    Joined:
    Nov 25, 2005
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    Yeah, it shouldn't be asked here unless you want to know how to do it within cPanel. Which you don't need to do. It's simply creating a redirection file.
     
  7. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    HTTP clients don't, according to the RFCs, have to understand relative URLs in redirects and so some HTTP clients may simply not respond correctly.

    I doubt, however, that any such clients actually exist. As I indicated, I was just being pedantic!
     
Loading...

Share This Page