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
  1. #1
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default Any difference between Mod ReWrite and real subdomains

    I don't know, I prefer it cleaner. using images.x.com instead of x.com/images

    is there any real difference? if I just reroute a few subdomains in the root.
    How could this hapen to meeeeeeeeeeeeeee?lol.

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

    Latest Awards:

    Default

    mod_rewrite and subdomains.. are two different things.

    A subdomain is really just a slave zone of the master zone.

    example.com is a subdomain of com
    www.example.com is a domain of example.com

    mod_rewrite is a totally different thing, not dealing with DNS at all. mod_rewrite is just Apache's rewrite engine.

    It just modifies a URL's appearence, not the actual serving of a domain..

  3. #3
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Hmm. It's just I'm going to be doing a lot of stuff in SVN and don't know if it's worth the hassle of keep changing servers. Maybe I'll just upload my tools on a subdomain (trac, pb, svn, etc..) and then use mod rewrite for my other folders whichi will be portrayed as subdomains.

    Nice plugin.
    How could this hapen to meeeeeeeeeeeeeee?lol.

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

    Latest Awards:

    Default

    Quote Originally Posted by Hypertext View Post
    Hmm. It's just I'm going to be doing a lot of stuff in SVN and don't know if it's worth the hassle of keep changing servers. Maybe I'll just upload my tools on a subdomain (trac, pb, svn, etc..) and then use mod rewrite for my other folders whichi will be portrayed as subdomains.

    Nice plugin.
    I don't think you have a clue what you are on about, you are really mixed up..

  5. #5
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Explain.
    How could this hapen to meeeeeeeeeeeeeee?lol.

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

    Latest Awards:

    Default

    the rewrite module is commonly used to capture a part of a url for example

    http://yoursite.com/go/pie

    and then place it behind the scenes for example, in front of .php . That would then make the server load pie.php and display it whilst the URL remain /go/pie . I think on that basis was the reason as to why caleb thought you were confused between the 2.

    I may be wrong, not knowing its full potential - but I hope you get the jist of it.


    www.fragme.co = a project.

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

    Latest Awards:

    Default

    mod_rewrite allows for modification of the URL, not seen by the client.

    They type: http://www.example.com/test and they get -> /test.php

    They type: http://example.com and they get a 301 -> http://www.example.com

    They type: http://www.example.com/testing/123 they get -> /bla.php?id=$1

    It is a lot more then that, those are just some simples uses of it.

    ----

    Subdomains, are actual DNS zones, just like domain names, which is why they have to propagate as well.

    Some common subdomains:
    www.example.com
    mail.example.com
    ftp.example.com

    Each one of those, are a slave zone added on the master zone.

    EX:

    When you request www.example.com

    1. It finds out which DNS TLD server manages com.
    2. It finds out which DNS server manages example.com
    3. It finds out which DNS server manages www.example.com

    When you request en.us.example.com

    1. It finds out which DNS TLD server manages com.
    2. It finds out which DNS server manages example.com
    3. It finds out which DNS server manages us.example.com
    4. It finds out which DNS server manages en.us.example.com

    Very different.

  8. #8
    Join Date
    Jul 2007
    Location
    Scotland
    Posts
    529
    Tokens
    0

    Default

    If I remember you can create a subdomain using mod_rewrite, but it requires a secondary domain (not 100% sure). Ask JH as he did it previously on habbopress.

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

    Latest Awards:

    Default

    It doesn't work on all servers though, and I think it requires wildcard catch all.

  10. #10
    Join Date
    Jul 2007
    Location
    Scotland
    Posts
    529
    Tokens
    0

    Default

    Quote Originally Posted by Dentafrice View Post
    It doesn't work on all servers though, and I think it requires wildcard catch all.
    Yeh I don't think it's a surefire solution. You're better off either setting up proper subdomains, or just leaving as a directory.

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
  •