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
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default [omgRLY] Dynamic Subdomains

    Hey,

    You might remember the thread I made a while back about making dynamic subdomains - (like minicity or whatever that site is) but today I finally managed it!

    I'l write a tutorial on how to do it when I have time but here's the working model!

    http://subdomain.omgrly.com

    Replace subdomain with anything (except img) and it will show you what subdomain you used. Pretty lame at the moment but it has the allowance to do anything because I did mod_rewrite so it points to http://omgrly.com/test/index.php?go=subdomain so it can be used for just about anything really.

    Have fun playing and thanks,
    Jake.

  2. #2
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    That's neat. Good job.

  3. #3
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Thanks

    Edit: 1000 posts! Woop!

  4. #4
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    how do you do it lol? ive been searching for one like this for ages just the htaccess bit would do. ty =D

  5. #5
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Here you go

    Code:
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} !^www\.domain\.com
    RewriteCond %{HTTP_HOST} ([^.]+)\.domain\.com [NC]
    RewriteRule ^(.*)$ index.php?go=%1 [L]
    In cPanel you need to add a subdomain: *.domain.com with it pointing to /public_html/ and then it will work

  6. #6
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by FlorX View Post
    Here you go

    Code:
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} !^www\.domain\.com
    RewriteCond %{HTTP_HOST} ([^.]+)\.domain\.com [NC]
    RewriteRule ^(.*)$ index.php?go=%1 [L]
    In cPanel you need to add a subdomain: *.domain.com with it pointing to /public_html/ and then it will work
    Ive been searching for ages and then you posted, and then i searched htaccess dynamic subdomains and it came up with loads lol. ty +rep

  7. #7
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Thank you very much! I've actually been looking for this!



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  8. #8
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    WRITE A TUTORIAL ^_^
    Nice one.
    i've been here for over 8 years and i don't know why

  9. #9
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    I posted how to do it above.

Posting Permissions

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