should you have 1 htaccess file on your site, or several?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AsylumN
    Confirmed User
    • Mar 2003
    • 625

    #1

    should you have 1 htaccess file on your site, or several?

    Ok, I have a htacess file for my members area, and now i want to put a few more htacess files on my site, so should I just paste the new htacess lines in my old htacess file, or should I create a whole seperate htacess file?

    I know that everytime your server has to access htaccess, it uses up server resources, so which is better? All your htaccess stuff on 1 file, or several files?
    SexSearch
  • mrthumbs
    salad tossing sig guy
    • Apr 2002
    • 11702

    #2
    dioesnt matter.. whatever is convenient for you.

    Comment

    • AsylumN
      Confirmed User
      • Mar 2003
      • 625

      #3
      Really? it doent matter?
      SexSearch

      Comment

      • AsylumN
        Confirmed User
        • Mar 2003
        • 625

        #4
        bump for confirmation of what mrthumbs said
        SexSearch

        Comment

        • JOKER
          Facit Omnia Voluntas
          • Apr 2003
          • 2105

          #5
          You mean multiple .htaccess for one site (domain) ?

          I see no need for that.

          Usually all info goes into one, why would you create more, I doubt
          it's even possible.

          Maybe explain a little better what you wanna do.
          Facilitation - BizDev - Traffic - Consulting - Marketing
          Skype: jokerempire | Silent Circle: joker

          Comment

          • mistress69
            Confirmed User
            • Feb 2005
            • 2804

            #6
            I have a couple on my sites

            Comment

            • JOKER
              Facit Omnia Voluntas
              • Apr 2003
              • 2105

              #7
              Originally posted by mistress69
              I have a couple on my sites
              In different directories, right?
              Facilitation - BizDev - Traffic - Consulting - Marketing
              Skype: jokerempire | Silent Circle: joker

              Comment

              • Aquarius
                Confirmed User
                • May 2004
                • 4754

                #8
                Originally posted by mistress69
                I have a couple on my sites
                What sites do you run?

                Comment

                • Pete-KT
                  Workin With The Devil
                  • Oct 2004
                  • 51532

                  #9
                  it doesnt matter

                  Comment

                  • AsylumN
                    Confirmed User
                    • Mar 2003
                    • 625

                    #10
                    Originally posted by JOKEREMPIRE
                    You mean multiple .htaccess for one site (domain) ?

                    I see no need for that.

                    Usually all info goes into one, why would you create more, I doubt
                    it's even possible.

                    Maybe explain a little better what you wanna do.
                    Well, what I meant is wether it's better to just put one big htaccess file in the root to cover evberything, or to put smaller ones in the directory of each site.
                    SexSearch

                    Comment

                    • teksonline
                      So Fucking Banned
                      • Jan 2005
                      • 2904

                      #11
                      the only thing you should be concerned with is mod rewrite or other cpu intensive stuff, in which in that case, the only thing you need to worry about is how you are organizing your content... so that if things are being parsed, it's only parsing whats neccesary and nothing more.

                      for example

                      say you want a .html file but its really a .shtml and yours just parsting .html on the fly, then all .html in that directory is being parsed as well, sucking your server CPU, so if you only have one of these files, stick it in a subdirectory so only that one page is being parsed
                      Last edited by teksonline; 03-14-2005, 08:23 AM.

                      Comment

                      • StuartD
                        Sofa King Band
                        • Jul 2002
                        • 29903

                        #12
                        Yeah, if you need specific directories to behave differently than others... for example, having one directory 404 to one sponsor and another directory 404 to another.

                        otherwise, no real need.
                        This is me on facebook
                        This is me on twitter

                        Comment

                        • mortenb
                          Confirmed User
                          • Jul 2004
                          • 2203

                          #13
                          Originally posted by teksonline
                          the only thing you should be concerned with is mod rewrite or other cpu intensive stuff, in which in that case, the only thing you need to worry about is how you are organizing your content... so that if things are being parsed, it's only parsing whats neccesary and nothing more.

                          for example

                          say you want a .html file but its really a .shtml and yours just parsting .html on the fly, then all .html in that directory is being parsed as well, sucking your server CPU, so if you only have one of these files, stick it in a subdirectory so only that one page is being parsed
                          or tell the server to only parse "file_in_question.html" as shtml in the same .htaccess.

                          It doesn't really matter if they are divided up.. Depends on what you need and how your files are structured.

                          Comment

                          Working...