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

Thread: rewrite code?

  1. #1
    Join Date
    Feb 2008
    Posts
    47
    Tokens
    0

    Default rewrite code?

    Does anyone know the rewrite code for phpfox ?

    as i need to add it to my htaccess file.

    thanks.

  2. #2
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Icupid View Post
    Does anyone know the rewrite code for phpfox ?

    as i need to add it to my htaccess file.

    thanks.
    tell us the profile links

    is it like profileview.php?user=lol

    Code:
    AddHandler application/x-httpd-php5 .php
    
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule profile/(.*) profile2.php?user=$1
    RewriteRule action/(.*) action.php?f=$1
    RewriteRule player/(.*) playercore.php?p=$1
    RewriteRule blogs/(.*) nivadeblogs.php?a=$1
    Thats my rewrite, but I'm made my system with Pixzo (HxF User)
    Last edited by Independent; 25-06-2008 at 10:07 PM.

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

    Latest Awards:

    Default

    I like it how you made out as if you made that code ^.^ Even though its just a generator on the internet .

    But yes, look at how that works by grabbing the data after the slash and then formatting it in to the correct URL (of which of course is hidden thanks to rewrite module).


    www.fragme.co = a project.

  4. #4
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Independent View Post
    tell us the profile links

    is it like profileview.php?user=lol

    Code:
    AddHandler application/x-httpd-php5 .php
    
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule profile/(.*) profile2.php?user=$1
    RewriteRule action/(.*) action.php?f=$1
    RewriteRule player/(.*) playercore.php?p=$1
    RewriteRule blogs/(.*) nivadeblogs.php?a=$1
    Thats my rewrite, but I'm made my system with Pixzo (HxF User)
    Welcome to exploit alley, don't ever use wildcards for any character unless you intend to use any character, usernames shouldn't have stupid characters like ~$@")(£!("$*() in them. They should be alphanumeric with no spaces.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

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

    Latest Awards:

    Default

    but surely you can handle that in the php?

    I mean I always filter them out in htaccess but it has never occured to me personally that it would be a huge exploit hole.

    edit // this is how I have mine (originally from Greg)

    Code:
    RewriteEngine on
    RewriteRule ^([A-Za-z0-9-]+)/?$ profile.php?username=$1 [L]
    Last edited by Source; 26-06-2008 at 11:00 AM.


    www.fragme.co = a project.

  6. #6
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by GasFMatt View Post
    but surely you can handle that in the php?

    I mean I always filter them out in htaccess but it has never occured to me personally that it would be a huge exploit hole.

    edit // this is how I have mine (originally from Greg)

    Code:
    RewriteEngine on
    RewriteRule ^([A-Za-z0-9-]+)/?$ profile.php?username=$1 [L]
    It's not a huge exploit if you handle it in the PHP, but alot of people here wont realize it until it's too late.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Posting Permissions

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