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
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default Ok, Dumb Question

    Right ok if i have,

    http://mysite.com/Chris

    Chris being a users username

    How can i make that redirect to

    http://mysite.com/members.php?user=Chris&MemberId=&1

    The folder automatically creates when a user registers, but i want it to redirect to the page..

    Try for ages, can't figure it out..

    Thanks
    Looking for a good desiner to design a social networking template.

    PM me.

  2. #2
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    .htaccess with ModRewrite

    CODE
    RewriteEngine On // - you are starting rewrite mod
    RewriteBase / // - you set the rewrite base
    RewriteRule ^(.+)/?$ members.php?user=$1&MemberId=$2 // and rule:
    // ^(.+) - text ONLY
    // ([0-9]+) - numbers ONLY
    Last edited by Flisker; 10-03-2008 at 06:15 PM.
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  3. #3
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Flisker View Post
    .htaccess with ModRewrite

    CODE
    RewriteEngine On // - you are starting rewrite mod
    RewriteBase / // - you set the rewrite base
    RewriteRule ^(.+)/?$ members.php?user=$1&MemberId=$2 // and rule:
    // ^(.+) - text ONLY
    // ([0-9]+) - numbers ONLY
    That makes absolutly no sense to me, ive never used htaccess before
    Looking for a good desiner to design a social networking template.

    PM me.

  4. #4
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    Code:
    RewriteEngine On // - you are starting rewrite mod
    RewriteBase / // - you set the rewrite base
    RewriteRule ^(.+)/?$ members.php?user=$1&MemberId=$2 // and rule:
    // ^(.+) - text ONLY
    // ([0-9]+) - numbers ONLY
    add that to the file named .htaccess in /public_html/
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  5. #5
    Join Date
    Mar 2008
    Posts
    173
    Tokens
    0

    Default

    You dont need to make folders, use mod_rewrite, else just put an index file in that folder.

  6. #6
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    I tried this

    but customized it to

    Code:
    RewriteEngine On // - you are starting rewrite mod
    RewriteBase / // - you set the rewrite base
    RewriteRule ^members/(.+)/?$ members.php?MemberId=$1 // and rule:
    // ^(.+) - text ONLY
    // ([0-9]+) - numbers ONLY
    and got

    Internal Server Error
    Looking for a good desiner to design a social networking template.

    PM me.

Posting Permissions

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