What is the difference between a directory and a subdomain ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yahoo-xxx-girls.com
    Confirmed User
    • Jul 2006
    • 3143

    #1

    What is the difference between a directory and a subdomain ?

    Hi all,

    I know this sounds very very lame... however I still would like to know the following.

    I know there is a difference between a directory and a sub domain for the purpose of SEO... Now I would like to use .htaccess as to create virtual subdomains... now I understand creating sub domains that you need the wildcard DNS to be established on the DNS side but is it the same when you setup a virtual subdomain using the .htaccess rewrite...

    I can create a subdomain the normal way...
    I can create a directory ;)

    example:

    www.prismvod.com/index.html <--- this gets index just fine

    www.prismvod.com/member-name/their-site.html (just a directory & not a subdomain) <--- will not get picked up... I will like this to be not just a directory but a virtual sub domain and I don't want to mess with the DNS wild card...


    I don't want to create regular sub domains but rather virtual sub domains because I do not have access to setup the wild card on the DNS server...

    I am using afraid.org DNS service since my webserver is on a dynamic IP connection...

    Since I would like to use a php script as to create virtual sub domains I would also like to know if such needs for the wild card feature on the DNS server to be accessed for the virtual sub domain...

    Any how-to advice is welcomed.

    Thanks for your interest,

    .
    sig too big
  • dissipate
    The Dirty Frenchman
    • Nov 2005
    • 8904

    #2
    Before we go any futher, why the fuck is your webserver on a dynamic IP?

    For this .htaccess domain.com/blah/ > blah.domain.com redirection, you need two things, a properly configured .htacces for the mod_rewrite, and secondly you'll need wildcard DNS set up.
    Last edited by dissipate; 11-18-2007, 07:03 AM.

    Comment

    • yahoo-xxx-girls.com
      Confirmed User
      • Jul 2006
      • 3143

      #3
      I find it much easier dissipate to use a dynamic IP and its a bit more secure so hackers do not have a steady IP as to hack... does this answer your question?

      I am not looking to set up a regular sub domain! I am looking to set up a virtual sub domain! my question is does the virtual sub domain require the wildcard DNS...

      .
      sig too big

      Comment

      • dissipate
        The Dirty Frenchman
        • Nov 2005
        • 8904

        #4
        Originally posted by Balalsubturfyooj
        I find it much easier dissipate to use a dynamic IP and its a bit more secure so hackers do not have a steady IP as to hack... does this answer your question?

        I am not looking to set up a regular sub domain! I am looking to set up a virtual sub domain! my question is does the virtual sub domain require the wildcard DNS...

        .
        Are you hosting this server out of your moms basement causing it to have a dynamic IP?

        Yes, for "virtual subdomains" you'll need to have wildcard DNS set up, and then redirect through .htaccess

        Comment

        • yahoo-xxx-girls.com
          Confirmed User
          • Jul 2006
          • 3143

          #5
          I could very well have a static Ip, but why... and your remark is really uncalled for...
          sig too big

          Comment

          • rowan
            Too lazy to set a custom title
            • Mar 2002
            • 17393

            #6
            I'll give you a free clue, web crawlers are notorious for caching DNS records for far longer than they should, which means they may continue attempting to connect to the old IP for weeks. "SEO" and "changing IPs periodically" do not mix.

            Comment

            • yahoo-xxx-girls.com
              Confirmed User
              • Jul 2006
              • 3143

              #7
              I don't mean to be rude rowan but that is of little use to me if I want to have a site index for a long time...

              Does Google index php talkback the same way as a subdomain ? Anyone?

              Thanks for your reply.
              sig too big

              Comment

              • dissipate
                The Dirty Frenchman
                • Nov 2005
                • 8904

                #8
                Originally posted by rowan
                I'll give you a free clue, web crawlers are notorious for caching DNS records for far longer than they should, which means they may continue attempting to connect to the old IP for weeks. "SEO" and "changing IPs periodically" do not mix.
                Don't tell him that, he's an "SEO Guru" for yappodollars

                Comment

                • yahoo-xxx-girls.com
                  Confirmed User
                  • Jul 2006
                  • 3143

                  #9
                  dissipate, actually I know a fair amount regarding SEO you smart ass... I am seeking to find stuff out that I did not know I did not know...

                  Perhaps you should get you head out of your ass and get of your high horse.

                  .
                  sig too big

                  Comment

                  • dissipate
                    The Dirty Frenchman
                    • Nov 2005
                    • 8904

                    #10
                    and to close our your question, if you can't enable wildcard DNS to redirect all non-defined subdomain requests to the document root , you cant create virtual subdomains through .htaccess

                    so sorry, the server hosted in your moms basement on the AOL dialup connection can not do what you need.

                    Comment

                    • scottybuzz
                      Too lazy to set a custom title
                      • May 2006
                      • 14799

                      #11
                      balasubturfyooj, once again wtf are you going on about?!
                      $$$$$ MAKE HUGE MONEY IN CAMS - CLICK HERE $$$$$

                      Comment

                      • yahoo-xxx-girls.com
                        Confirmed User
                        • Jul 2006
                        • 3143

                        #12
                        If you cannot read the thread scottybuzz perhaps you should flush yourself down the toilet, again...
                        sig too big

                        Comment

                        • scottybuzz
                          Too lazy to set a custom title
                          • May 2006
                          • 14799

                          #13
                          Originally posted by Balalsubturfyooj
                          If you cannot read the thread scottybuzz perhaps you should flush yourself down the toilet, again...
                          oh i can read alright, i just cant understand jibberish!

                          Later,
                          $$$$$ MAKE HUGE MONEY IN CAMS - CLICK HERE $$$$$

                          Comment

                          • fris
                            I have to go potty
                            • Aug 2002
                            • 55932

                            #14
                            if you want to create sub domains on the fly try something like this

                            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 --> /subs/abc
                            RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
                            RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$ [NC]
                            RewriteCond %1:::%{REQUEST_URI} !^(.+):::/subs/\1(/.*)?$ [NC]
                            RewriteCond %{DOCUMENT_ROOT}/subs/%1/ -d
                            RewriteRule ^(.*)$ /subs/%1/$1 [QSA,L]
                            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                            Only Fans Data

                            20+ Custom Adult Themes and Plugins

                            Comment

                            • yahoo-xxx-girls.com
                              Confirmed User
                              • Jul 2006
                              • 3143

                              #15
                              Thanks Fris, just one question... do I need to mess around with the DNS wildcard ?

                              Thanks for your input !
                              sig too big

                              Comment

                              • dissipate
                                The Dirty Frenchman
                                • Nov 2005
                                • 8904

                                #16
                                Originally posted by Fris
                                if you want to create sub domains on the fly try something like this

                                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 --> /subs/abc
                                RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
                                RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$ [NC]
                                RewriteCond %1:::%{REQUEST_URI} !^(.+):::/subs/\1(/.*)?$ [NC]
                                RewriteCond %{DOCUMENT_ROOT}/subs/%1/ -d
                                RewriteRule ^(.*)$ /subs/%1/$1 [QSA,L]

                                Still, wont work without a wildcard DNS record to point the subdomains to the documentroot of the TLD

                                Comment

                                • fris
                                  I have to go potty
                                  • Aug 2002
                                  • 55932

                                  #17
                                  ya you need a wildcard, your host can set it up tho in your apache virtualhost entry just one more parameter to add to serveralias
                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                                  Only Fans Data

                                  20+ Custom Adult Themes and Plugins

                                  Comment

                                  • yahoo-xxx-girls.com
                                    Confirmed User
                                    • Jul 2006
                                    • 3143

                                    #18
                                    Originally posted by Fris
                                    ya you need a wildcard, your host can set it up tho in your apache virtualhost entry just one more parameter to add to serveralias
                                    Thanks for your time
                                    sig too big

                                    Comment

                                    • CurrentlySober
                                      Too lazy to wipe my ass
                                      • Aug 2002
                                      • 39046

                                      #19
                                      Easy. The main difference is that one of them has a cat in it.
                                      The other is cat free.
                                      ️ ️

                                      Comment

                                      Working...