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 6 of 6
  1. #1
    Join Date
    Feb 2005
    Posts
    1,411
    Tokens
    0

    Latest Awards:

    Default Can you do this...

    Hello, i have a website which i redirected the homepage to another page on the website using the cpanel tool. Recently the cpanel has been down and i havent been able to redirect it to where i want. I still have ftp access and was wondering if theres a file that i can edit to change the redirect?

    Thanks, + rep...

    Matt

    Edited by Lµke (Forum Moderator): Thread Moved from Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 29-04-2007 at 09:50 AM.
    I owe rep to:

    NintendoNews & Luckyrare

  2. #2
    Join Date
    Dec 2006
    Posts
    1,128
    Tokens
    0

    Latest Awards:

    Default

    Here's a little script

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>W00tage.info | Redirecting...</title>
    
    <script>
    var browser_type=navigator.appName
    var browser_version=parseInt(navigator.appVersion)
    if (browser_type=="Netscape"&&browser_version>=5)
    window.location.replace("http://www.w00tage.info/forums")
    else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
    window.location.replace("http://www.w00tage.info/forums")
    else if (browser_type=="Netscape"&&browser_version>=4)
    window.location.replace("http://www.w00tage.info/forums")
    else
    window.location="http://www.w00tage.info/forums"
    </script>
    
    <style type="text/css">
    <!--
    .style1 {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 9px;
    }
    -->
    </style>
    </head>
    
    <body>
    <div align="center" class="style1">You are now being redirected to the forums in 5 seconds...</div>
    </body>
    </html>

  3. #3
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    or

    PHP Code:
    <?php
    header
    'Location: http://www.newsite.com' ) ;
    ?>
    Last edited by Luckyrare; 29-04-2007 at 08:32 AM.

  4. #4
    Join Date
    Dec 2006
    Posts
    1,128
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Luckyrare View Post
    or

    PHP Code:
    <?php
       header
    'Location: http://www.newsite.com' ) ;
    ?>
    thats much easyer .

  5. #5
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Or, if you don't want to use PHP:

    Code:
    <script type="text/javascript">
    window.location = "http://asite.com";
    </script>



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  6. #6
    Join Date
    Feb 2005
    Posts
    1,411
    Tokens
    0

    Latest Awards:

    Default

    Thanks guys, mod, please close thread.. + rep to u all

    Nintendo & Danny, i have got to spread so ill put u in my sig so i dnt forget.

Posting Permissions

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