Hosting tech question:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uno
    RIP Dodger. BEST.CAT.EVER
    • Dec 2002
    • 18450

    #1

    Hosting tech question:

    How can I make subdirectories on a domain act like subdomains?

    ex. blah.com/bleh = bleh.blah.com
    -uno
    icq: 111-914
    CrazyBabe.com - porn art
    MojoHost - For all your hosting needs, present and future. Tell them I sent ya!
  • baddog
    So Fucking Banned
    • Apr 2001
    • 107089

    #2
    ummm, you could set them up as subdomains instead of subdirectories. I have never heard of doing what you are attempting.

    Comment

    • uno
      RIP Dodger. BEST.CAT.EVER
      • Dec 2002
      • 18450

      #3
      Originally posted by baddog
      ummm, you could set them up as subdomains instead of subdirectories. I have never heard of doing what you are attempting.
      That would be a whole shitload of subdomains.
      -uno
      icq: 111-914
      CrazyBabe.com - porn art
      MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

      Comment

      • baddog
        So Fucking Banned
        • Apr 2001
        • 107089

        #4
        Originally posted by uno
        That would be a whole shitload of subdomains.
        and . . . ?

        Comment

        • GrouchyAdmin
          Now choke yourself!
          • Apr 2006
          • 12085

          #5
          Originally posted by uno
          That would be a whole shitload of subdomains.
          Also, obnoxious as fuck, and an obvious action of someone who doesn't know what the fuck they want to do, or how to do it. You'll want to use mod_rewrite.

          This thread will assist in learning the craziness of mod_rewrite.

          Comment

          • Brujah
            Beer Money Baron
            • Jan 2001
            • 22157

            #6
            Originally posted by baddog
            ummm, you could set them up as subdomains instead of subdirectories. I have never heard of doing what you are attempting.
            and you call yourself an SEO host...

            Comment

            • baddog
              So Fucking Banned
              • Apr 2001
              • 107089

              #7
              Originally posted by Brujah
              and you call yourself an SEO host...
              Because I haven't seen anyone make a subdirectory come up as a subdomain? It isn't something we do, and I have never had a client ask me how to do it.

              That doesn't mean I am not investigating the possibility.

              Comment

              • Spudstr
                Confirmed User
                • Jan 2003
                • 2321

                #8
                could always setup a vhost..

                <VirtualHost xxx.xxx.xxx.xxx>
                UseCanonicalName off

                VirtualDocumentRoot /home/somewhere/www/&#37;1.0.%3.0
                </VirtualHost>

                that should map subdomains to folders, you can replace the %1.0 with %2.0 if you want to use domain.com atleast this is the way it should work. pulling this from a config wher esomeone has hundreds of folders and all on one ip and hundres of domains each domain is domain1.com ect.. they use the %2.0 instead of %1.0

                htaccess can do it too..
                Last edited by Spudstr; 02-10-2007, 12:17 PM.
                Managed Hosting - Colocation - Network Services
                Yellow Fiber Networks
                icq: 19876563

                Comment

                • BigBen
                  Confirmed User
                  • Nov 2004
                  • 2299

                  #9
                  .htaccess.

                  Smokey made a post a few months ago(?) on how to do exactly that.

                  Comment

                  • uno
                    RIP Dodger. BEST.CAT.EVER
                    • Dec 2002
                    • 18450

                    #10
                    Originally posted by BigBen
                    .htaccess.

                    Smokey made a post a few months ago(?) on how to do exactly that.
                    Thanks, I'll look for that and hit him up on icq.
                    -uno
                    icq: 111-914
                    CrazyBabe.com - porn art
                    MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                    Comment

                    • Superterrorizer
                      Confirmed User
                      • Sep 2003
                      • 509

                      #11
                      Originally posted by uno
                      How can I make subdirectories on a domain act like subdomains?

                      ex. blah.com/bleh = bleh.blah.com
                      Why not ask your host to do it? Some pretty trivial mod_rewrite rules will take care of that.

                      Comment

                      • uno
                        RIP Dodger. BEST.CAT.EVER
                        • Dec 2002
                        • 18450

                        #12
                        Originally posted by Superterrorizer
                        Why not ask your host to do it? Some pretty trivial mod_rewrite rules will take care of that.
                        I did, they said they didn't know how to do it.

                        Anyways, I found this post from Fris:

                        Originally posted by Fris
                        make sure to setup the * entry in your httpd.conf

                        servername www.domain.com
                        serveralias *.domain.com

                        htaccess would be

                        Options +FollowSymLinks
                        RewriteEngine On

                        # mod_dir fix
                        RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
                        RewriteCond %{HTTP_HOST} ^(.*\.)?([^\.]+)\.domain\.com$ [NC]
                        RewriteCond %{DOCUMENT_ROOT}/subs/%2%{REQUEST_URI}/ -d
                        RewriteRule [^/]$ http://%2.domain.com%{REQUEST_URI}/ [R=301,L]

                        # strip sub subdomains
                        RewriteCond %{HTTP_HOST} ^.*\.([^\.]+\.domain\.com)$ [NC]
                        RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

                        # abc.domain.com/def --> /subs/abc/def
                        RewriteCond %{ENV:REDIRECT_STATUS} ^$
                        RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
                        RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$ [NC]
                        RewriteCond %{DOCUMENT_ROOT}/subs/%1/ -d
                        RewriteRule ^(.*)$ /subs/%1/$1 [QSA,L]

                        so domain.com/subs would contain all your subdomains

                        so domain.com/subs/fuck --> fuck.domain.com
                        -uno
                        icq: 111-914
                        CrazyBabe.com - porn art
                        MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                        Comment

                        • Superterrorizer
                          Confirmed User
                          • Sep 2003
                          • 509

                          #13
                          Originally posted by uno
                          I did, they said they didn't know how to do it.

                          Anyways, I found this post from Fris:


                          Your host doesn't know how to do it? You need a new host dude, something that simple should be within the grasp of any host worth their salt.

                          Comment

                          • uno
                            RIP Dodger. BEST.CAT.EVER
                            • Dec 2002
                            • 18450

                            #14
                            Originally posted by Superterrorizer
                            Your host doesn't know how to do it? You need a new host dude, something that simple should be within the grasp of any host worth their salt.
                            It's actually a great host. I have no idea why they don't know this.
                            -uno
                            icq: 111-914
                            CrazyBabe.com - porn art
                            MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                            Comment

                            • Superterrorizer
                              Confirmed User
                              • Sep 2003
                              • 509

                              #15
                              Originally posted by uno
                              It's actually a great host. I have no idea why they don't know this.
                              How are they are great host if they don't know how to use mod_rewrite? That's a fundamental part of apache.

                              If they were a great host they would have taken care of that for you.

                              Comment

                              • fuzebox
                                making it rain
                                • Oct 2003
                                • 22352

                                #16
                                Originally posted by Superterrorizer
                                How are they are great host if they don't know how to use mod_rewrite? That's a fundamental part of apache.

                                If they were a great host they would have taken care of that for you.
                                Even if for whatever reason the tech he talked to didn't know basic mod_rewrite, they could have done the 10 min of research in order to satisfy their client.

                                Comment

                                • BigBen
                                  Confirmed User
                                  • Nov 2004
                                  • 2299

                                  #17
                                  Originally posted by uno
                                  Thanks, I'll look for that and hit him up on icq.
                                  Whoops, I guess it was Fris that made the post. At any rate, you found it.

                                  Comment

                                  • Superterrorizer
                                    Confirmed User
                                    • Sep 2003
                                    • 509

                                    #18
                                    Originally posted by fuzebox
                                    Even if for whatever reason the tech he talked to didn't know basic mod_rewrite, they could have done the 10 min of research in order to satisfy their client.
                                    Exactly. I'm curious to know which host it is now.

                                    Comment

                                    • Catalyst
                                      Confirmed User
                                      • Jun 2003
                                      • 3243

                                      #19
                                      i wanted to do that a year ago.. uno if you don't have any luck let me know and I can look for my notes

                                      Comment

                                      • L0stMind
                                        Confirmed User
                                        • Sep 2002
                                        • 1681

                                        #20
                                        ummm, there is an apache module that does this... mod_vhost_alias if I recall correctly.

                                        http://cashcore.com
                                        - Make Money.
                                        http://ezprovider.net - Hosting.

                                        Comment

                                        • uno
                                          RIP Dodger. BEST.CAT.EVER
                                          • Dec 2002
                                          • 18450

                                          #21
                                          Originally posted by Superterrorizer
                                          How are they are great host if they don't know how to use mod_rewrite? That's a fundamental part of apache.

                                          If they were a great host they would have taken care of that for you.
                                          Believe it or not, its NatNet.
                                          -uno
                                          icq: 111-914
                                          CrazyBabe.com - porn art
                                          MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                          Comment

                                          • chaze
                                            Confirmed User
                                            • Aug 2002
                                            • 9774

                                            #22
                                            Sub domains are old school, nowadays /directory is the norm

                                            But if you really want sub.domains then redirect the directory with a htaccess file or just use that folder as the sub.domain folder and don't use any absolute paths.
                                            Like the desert needs the rain
                                            We do fully manged WordPress, VPS, and Servers. Adult Host Pro https://adulthostpro.com/ Since 2001

                                            Comment

                                            • Moose
                                              Confirmed User
                                              • Feb 2001
                                              • 1548

                                              #23
                                              Uno
                                              Hope you got this sorted out.
                                              You know we are still here for you if you need it.



                                              Phatservers.net

                                              Comment

                                              • jesse_adultdatingdollars
                                                Confirmed User
                                                • Apr 2006
                                                • 2197

                                                #24
                                                no idea......
                                                Got Dating Traffic?
                                                Contact: Jesse (at) adultdatingdollars.com ICQ: 296775809 or AIM: cabotime21

                                                Comment

                                                • uno
                                                  RIP Dodger. BEST.CAT.EVER
                                                  • Dec 2002
                                                  • 18450

                                                  #25
                                                  Originally posted by Moose
                                                  Uno
                                                  Hope you got this sorted out.
                                                  You know we are still here for you if you need it.



                                                  Phatservers.net
                                                  I asked support @ phatservers about how it was done on my server and they were a bit pissy since I switched companies and didn't answer me.

                                                  Other than that, I have never had a complaint with your company and the service you provide. Problems were addressed very quickly and service was top notch!

                                                  I highly recommend Phatservers to anyone!
                                                  Last edited by uno; 02-10-2007, 07:25 PM.
                                                  -uno
                                                  icq: 111-914
                                                  CrazyBabe.com - porn art
                                                  MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                                  Comment

                                                  • Superterrorizer
                                                    Confirmed User
                                                    • Sep 2003
                                                    • 509

                                                    #26
                                                    Originally posted by uno
                                                    Believe it or not, its NatNet.
                                                    Can I ask what makes them great in your opinion? To me a great host would be one that never says "We don't know how to do that". I see lots of people say how awesome they are but nobody every says why. Are they awesome because the "big players" use them? Because they are expensive? It surely couldn't be because of their tech support if they can't take care of something like that for you.

                                                    I know of a few hosts who will take care of pretty much any request you can think of without ever having to hear "we don't know how to do that".

                                                    But I'm not here to promote hosts, I'm here to try and get down to the nitty gritty.

                                                    Remember folks, there are more variables to consider than just price when you're choosing a host. Expensive does not always mean awesome, cheap does not always mean shitty. Do your research, ask your friends and colleagues who they host with and why.

                                                    Comment

                                                    • broke
                                                      Confirmed User
                                                      • Aug 2003
                                                      • 4501

                                                      #27
                                                      Originally posted by uno
                                                      Believe it or not, its NatNet.
                                                      In case you all missed it.
                                                      Perfect Gonzo

                                                      Comment

                                                      • uno
                                                        RIP Dodger. BEST.CAT.EVER
                                                        • Dec 2002
                                                        • 18450

                                                        #28
                                                        Originally posted by Superterrorizer
                                                        Can I ask what makes them great in your opinion? To me a great host would be one that never says "We don't know how to do that". I see lots of people say how awesome they are but nobody every says why. Are they awesome because the "big players" use them? Because they are expensive? It surely couldn't be because of their tech support if they can't take care of something like that for you.

                                                        I know of a few hosts who will take care of pretty much any request you can think of without ever having to hear "we don't know how to do that".

                                                        But I'm not here to promote hosts, I'm here to try and get down to the nitty gritty.

                                                        Remember folks, there are more variables to consider than just price when you're choosing a host. Expensive does not always mean awesome, cheap does not always mean shitty. Do your research, ask your friends and colleagues who they host with and why.
                                                        They generally have superb support, great uptime, a solid rep, and great all around service. I got in when they had their price matching promotion so its not as expensive as you'd imagine.
                                                        -uno
                                                        icq: 111-914
                                                        CrazyBabe.com - porn art
                                                        MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                                        Comment

                                                        • Moose
                                                          Confirmed User
                                                          • Feb 2001
                                                          • 1548

                                                          #29
                                                          Originally posted by uno
                                                          I asked support @ phatservers about how it was done on my server and they were a bit pissy since I switched companies and didn't answer me.

                                                          Other than that, I have never had a complaint with your company and the service you provide. Problems were addressed very quickly and service was top notch!

                                                          I highly recommend Phatservers to anyone!
                                                          Well if they were pissy I apologize, They were just following policy to not provide tech support for other companys.
                                                          If your current host can't figure it out, hit me up personally and i'll get you in the right track, You have always been a good customer and I appreciate that!

                                                          Comment

                                                          • Superterrorizer
                                                            Confirmed User
                                                            • Sep 2003
                                                            • 509

                                                            #30
                                                            Originally posted by uno
                                                            They generally have superb support, great uptime, a solid rep, and great all around service. I got in when they had their price matching promotion so its not as expensive as you'd imagine.
                                                            So if I understand this correctly, you were with Phatservers and switched to NatNet? You said you never had a complaint with them, so why would you switch? If it ain't broke, why fix it?

                                                            Comment

                                                            • L0stMind
                                                              Confirmed User
                                                              • Sep 2002
                                                              • 1681

                                                              #31
                                                              Originally posted by Moose
                                                              Well if they were pissy I apologize, They were just following policy to not provide tech support for other companys.
                                                              If your current host can't figure it out, hit me up personally and i'll get you in the right track, You have always been a good customer and I appreciate that!
                                                              Sign of a good host.

                                                              http://cashcore.com
                                                              - Make Money.
                                                              http://ezprovider.net - Hosting.

                                                              Comment

                                                              • uno
                                                                RIP Dodger. BEST.CAT.EVER
                                                                • Dec 2002
                                                                • 18450

                                                                #32
                                                                Originally posted by L0stMind
                                                                Sign of a good host.
                                                                phatservers is a great company i recommend to anyone.
                                                                -uno
                                                                icq: 111-914
                                                                CrazyBabe.com - porn art
                                                                MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                                                Comment

                                                                • darksoul
                                                                  Confirmed User
                                                                  • Apr 2002
                                                                  • 4997

                                                                  #33
                                                                  Code:
                                                                  RewriteEngine On
                                                                  RewriteCond %{HTTP_HOST} !^$
                                                                  RewriteCond %{HTTP_HOST} !(www.)?([^.]+].domain.com$ [NC]
                                                                  RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
                                                                  RewriteRule ^(www.)?([^.]+).domain.com(.*) /path/$2$3 [L]
                                                                  you know where to reach me if you need help with it
                                                                  1337 5y54|)m1n: 157717888
                                                                  BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
                                                                  Cambooth

                                                                  Comment

                                                                  • LBBV
                                                                    Confirmed User
                                                                    • Aug 2002
                                                                    • 936

                                                                    #34
                                                                    Originally posted by Superterrorizer
                                                                    Can I ask what makes them great in your opinion? To me a great host would be one that never says "We don't know how to do that". I see lots of people say how awesome they are but nobody every says why. Are they awesome because the "big players" use them? Because they are expensive? It surely couldn't be because of their tech support if they can't take care of something like that for you.

                                                                    I know of a few hosts who will take care of pretty much any request you can think of without ever having to hear "we don't know how to do that".

                                                                    But I'm not here to promote hosts, I'm here to try and get down to the nitty gritty.

                                                                    Remember folks, there are more variables to consider than just price when you're choosing a host. Expensive does not always mean awesome, cheap does not always mean shitty. Do your research, ask your friends and colleagues who they host with and why.
                                                                    Just to clear the air here and tell the ENTIRE story. This directory/sub-domain request was put in on Saturday and the tech who claimed the work order was not sure how to do it. He escalated it to another tech who was able to get this working in short order.

                                                                    It's always great when only part of the story is revealed and folks try to build a case around that.

                                                                    I see lots of people say how awesome they are but nobody every says why.
                                                                    All you have to do is search this board and you can find out why. Plenty of folks have come on here and raved about our service. If you would like, I can do this search for you.

                                                                    We didn't get to be the biggest in the industry by providing poor service. Do you think we could keep the customers we have (PentHouse, Karups, LightSpeed, PlatinumBucks, Shemp, AL4A, Twistys, ConsumptionJunction, TripleXCash/TeenRevenue, SweetEntertainment and Shaw Internet?just to name a few...I could provide more if you need) by not knowing what the heck we are doing?

                                                                    -- Bill
                                                                    National Net Hosting. Handled.
                                                                    See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN
                                                                    [email protected] | 888-4-NATNET | www.nationalnet.com

                                                                    Comment

                                                                    • uno
                                                                      RIP Dodger. BEST.CAT.EVER
                                                                      • Dec 2002
                                                                      • 18450

                                                                      #35
                                                                      NatNet did get it, and I have no complaints about the service. They are a great company and have done a lot for me so far.
                                                                      -uno
                                                                      icq: 111-914
                                                                      CrazyBabe.com - porn art
                                                                      MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                                                      Comment

                                                                      • uno
                                                                        RIP Dodger. BEST.CAT.EVER
                                                                        • Dec 2002
                                                                        • 18450

                                                                        #36
                                                                        Actually the full story is that it was a post by Fris on here that helped the techs understand what i wanted to do. The other tech had no idea either.
                                                                        -uno
                                                                        icq: 111-914
                                                                        CrazyBabe.com - porn art
                                                                        MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                                                        Comment

                                                                        • Shap
                                                                          Confirmed User
                                                                          • May 2001
                                                                          • 8313

                                                                          #37
                                                                          Originally posted by LBBV
                                                                          Just to clear the air here and tell the ENTIRE story. This directory/sub-domain request was put in on Saturday and the tech who claimed the work order was not sure how to do it. He escalated it to another tech who was able to get this working in short order.

                                                                          It's always great when only part of the story is revealed and folks try to build a case around that.



                                                                          All you have to do is search this board and you can find out why. Plenty of folks have come on here and raved about our service. If you would like, I can do this search for you.

                                                                          We didn't get to be the biggest in the industry by providing poor service. Do you think we could keep the customers we have (PentHouse, Karups, LightSpeed, PlatinumBucks, Shemp, AL4A, Twistys, ConsumptionJunction, TripleXCash/TeenRevenue, SweetEntertainment and Shaw Internet?just to name a few...I could provide more if you need) by not knowing what the heck we are doing?

                                                                          -- Bill
                                                                          Bill you guys are so good it's not fair to your competition.

                                                                          Comment

                                                                          • uno
                                                                            RIP Dodger. BEST.CAT.EVER
                                                                            • Dec 2002
                                                                            • 18450

                                                                            #38
                                                                            Originally posted by Shap
                                                                            Bill you guys are so good it's not fair to your competition.
                                                                            They definitely are great. Every support request I've had has been handled within minutes and I've had 0 downtime so far.
                                                                            -uno
                                                                            icq: 111-914
                                                                            CrazyBabe.com - porn art
                                                                            MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                                                            Comment

                                                                            Working...