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 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: mod_rewrite

  1. #11
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Habbox.justgotowned.com
    Clever you...

    You might need a server to do this as I'm thinking you MIGHT have to put the htaccess in a higher folder, such as like /home/ not /home/account/.

    Also, you might have to tweak httpd.conf? Idk lol

  2. #12
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Well... I'm not very good with .htaccess but here's what I would suggest....

    Use .htaccess to redirect users to an error page that just gets the referrer and then does the counting that way. So basically you just have to setup an .htaccess file with your error pages defined as so:

    Code:
    ErrorDocument 404 /errors/counter.php
    And then on the counter.php just have it do something with the referrer and that should help you out. So you can use PHP on the error page to see whether or not the referrer was a subdomain and if not then just dont count it

  3. #13
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Uhm, I don't think that helps him set up like a wildcard subdomain, so anyone can do:

    sdfsdfsfsdf.hissite.com

    If that doesn't exit, he'll get a DNS error as it's not a real URL as it's not defined in his virtual hosts file, etc.

Page 2 of 2 FirstFirst 12

Posting Permissions

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