Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 5 of 5

Thread: Redirection

  1. #1
    Join Date
    Jun 2005
    Posts
    511
    Tokens
    0

    Default Redirection

    Hey i'm using the cpanel password lock thing so that if users enter the wrong info it goes to the 401.htm page

    however i want to have the code to redirect it so it goes to public_html/401/index.htm

    the reason is because when it goes to it theres images on there and it keeps asking for login user and pass.

    the reason i need this is because it's a new project im working on;'D

  2. #2
    Join Date
    Feb 2006
    Location
    Befordshire, England
    Posts
    672
    Tokens
    0

    Default

    If you mean the redirection code it's..

    <?php header("Location: http://www.yoursite.com"); ?>



    Daza

  3. #3
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Does it allow you to enter HTML? If so you could put this into the wrong password message, and it should redirect the user.
    Code:
    <script tyep="text/JavaScript">
    <!--Begin
     document.location.href = 'page.htm';
    //-->
    </script>
    Last edited by nets; 26-03-2006 at 03:02 PM. Reason: Opps
    kinda quit.

  4. #4
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    Just thought I would correct you to make me feel good
    PHP Code:
    <script type="text/JavaScript">
    <!--
    Begin
     document
    .location.href 'page.htm';
    //-->
    </script

  5. #5
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    What did I tyep wrong? Lol
    kinda quit.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •