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 9 of 9
  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default Mod rewrite help

    How do i change-

    /profile.php?username=username

    to-

    /profile/username


    Thanks.

    EDIT: I've tried the code below but I get error 500

    RewriteEngine on
    RewriteRule ^/profile.php?username=(.*) /profile/$1 [PT]
    Last edited by Decode; 28-08-2008 at 12:22 PM.
    Lets set the stage on fire, and hollywood will be jealous.

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

    Latest Awards:

    Default

    RewriteEngine on
    RewriteRule ^profile/([A-Za-z0-9-]+)/?$ profile.php?username=$1 [L]

    You got it mixed up a little bit, that should work.


    www.fragme.co = a project.

  3. #3
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default


    Rewrite Engine On
    RewriteRule ^profile/([^\/]+)/?$ /profile.php?username=$1 [L]

    i fink

    no

  4. #4
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Source View Post
    RewriteEngine on
    RewriteRule ^profile/([A-Za-z0-9-]+)/?$ profile.php?username=$1 [L]

    You got it mixed up a little bit, that should work.
    Quote Originally Posted by MadGuitarist View Post

    Rewrite Engine On
    RewriteRule ^profile/([^\/]+)/?$ /profile.php?username=$1 [L]

    i fink

    I've just tried both of them and they don't work. Maybe its a problem with my localhost :S

    Anyway +rep for helping
    Lets set the stage on fire, and hollywood will be jealous.

  5. #5
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default

    Possibly, it doesn't work on my hosting :p
    no

  6. #6
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by MadGuitarist View Post
    Possibly, it doesn't work on my hosting :p
    Turned out i had rewrite_module off, so its on now and working
    Lets set the stage on fire, and hollywood will be jealous.

  7. #7
    Join Date
    Jul 2005
    Location
    Cymru! :o Bahh
    Posts
    571
    Tokens
    0

    Default

    anyone know how to get this working with apache2?
    Tried to get it working for ages and have had no luck, every time i try, apache seems to stop responding

    So A Kiss Is Out Of The Question Then..?

    ♥ My Boy <sinlge> Tbh ♥
    This love isn't good unless it's me and you
    Complicated is the whole point. x

    Theres nothing scarier than getting something you want because then you have something to lose..





  8. #8
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by kreechin View Post
    anyone know how to get this working with apache2?
    Tried to get it working for ages and have had no luck, every time i try, apache seems to stop responding
    Im using apche2 but its sort of built into wamp, I think there must be a config file somewhere with all of the options in, but on wamp you can just change them through a menu.
    Lets set the stage on fire, and hollywood will be jealous.

  9. #9
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    httpd.conf should be inside the conf or apache directory. Just find it.

    You should see an option for the rewrite module, turn it on, if the modules wasn't compiled with Apache, you may have to compile it again.

Posting Permissions

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