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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: help?

  1. #1
    Join Date
    Jul 2007
    Location
    Beds
    Posts
    111
    Tokens
    0

    Default help?

    In a website u get the page file such as, members.php?user=Moocow

    Is there anyway u can get, yourweb.co.uk/members/moocow?

    Can anyone help

    Moved by Invent (Forum Moderator) from Designing & Development: Please post in the correct forum next time, thanks .
    Last edited by Invent; 27-07-2008 at 09:43 PM.

  2. #2
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Edit your .htacces and add this under any code that's there:

    Code:
    RewriteEngine on
    RewriteRule ^members/([^/]+)/?$ /members.php?user=$1 [L]

  3. #3
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Thats a rewrite, check this link for the one you want:
    http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

  4. #4
    Join Date
    Jul 2007
    Location
    Beds
    Posts
    111
    Tokens
    0

    Default

    Quote Originally Posted by BOX! View Post
    Edit your .htacces and add this under any code that's there:

    Code:
    RewriteEngine on
    RewriteRule ^members/([^/]+)/?$ /members.php?user=$1 [L]
    Could u explain that in abit more depth

  5. #5
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Quote Originally Posted by DuxRawr View Post
    Could u explain that in abit more depth
    Explain what the code does or explain the .htaccess file?

  6. #6
    Join Date
    Jul 2007
    Location
    Beds
    Posts
    111
    Tokens
    0

    Default

    bothh please

  7. #7
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Read the comments.

    Code:
    RewriteEngine on // This turns on the rewrite engine, allowing us to make a rewrite rule.
    RewriteRule ^members/([^/]+)/?$ /members.php?user=$1 [L] // This just turns members.php?user=x into members/x. I'd explain more if I wasn't on my iPod and knew more about it.

  8. #8
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    Code:
    RewriteEngine on
    RewriteRule ^members/([A-Za-z0-9-]+)/?$ members.php?user=$1 [L]
    That's better code than box's. That doesn't allow special characters if I'm correct.

    I would love to explain the depth of the rewrite module but the truth is google can do a hell of alot better.


    www.fragme.co = a project.

  9. #9
    Join Date
    Jul 2007
    Location
    Beds
    Posts
    111
    Tokens
    0

    Default

    Quote Originally Posted by BOX! View Post
    Read the comments.

    Code:
    RewriteEngine on // This turns on the rewrite engine, allowing us to make a rewrite rule.
    RewriteRule ^members/([^/]+)/?$ /members.php?user=$1 [L] // This just turns members.php?user=x into members/x. I'd explain more if I wasn't on my iPod and knew more about it.
    Muchh Help +REP

    Thanks so much

  10. #10
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


Page 1 of 2 12 LastLast

Posting Permissions

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