Do you know how to use .htaccess?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chaze
    Confirmed User
    • Aug 2002
    • 9774

    #1

    Do you know how to use .htaccess?

    Taking poll if it's more common to know how to use htaccess or not.

    There are some great security options with it and of course password protection. But any other tricks like 501 redirects..
    26
    No - And people should post some tricks and tips
    0%
    4
    Yes - I am crafty like that
    0%
    22
    Like the desert needs the rain
    We do fully manged WordPress, VPS, and Servers. Adult Host Pro https://adulthostpro.com/ Since 2001
  • xclusive
    Too lazy to set a custom title
    • Apr 2004
    • 35218

    #2
    Yup, Been using it for years.

    I support MediumPimpin.com / Shemp's Outlawtgp.com /


    Comment

    • xclusive
      Too lazy to set a custom title
      • Apr 2004
      • 35218

      #3
      HTAccessible is a great free tool

      http://www.tlhouse.co.uk/pc_software.shtml

      http://www.tlhouse.co.uk/htac1000.exe

      I support MediumPimpin.com / Shemp's Outlawtgp.com /


      Comment

      • GrouchyAdmin
        Now choke yourself!
        • Apr 2006
        • 12085

        #4
        A quick note: Using .htaccess instead of server rules causes extra file, and rule lookups for each request, which will eventually cause a slowdown, and it won't work if AuthConfig is not set to Override. (The former is incredibly common with virtualhosts; it makes the admin's job easier.)

        It's a quick way to make changes if you do not have access to your webserver's configuration, but if you do, there are better ways to set it up, such as in the webserver config file for that host.

        Always wrap your statements properly.

        Putting: RewriteEngine On in your .htacess is not as safe as:

        <IfModule mod_rewrite.c>
        RewriteEngine On
        </IfModule>

        In case if someone screws up on a webserver upgrade, the above will say 'Ok, so, rewrite isn't here, but we can deal with that.' The former will cause a 500 error, and your site will be down until someone notifies the administration that something bad happened.

        ...end of hijack.

        Comment

        • Andiz
          Confirmed User
          • Feb 2006
          • 2594

          #5
          Ofcouse I know how to use it.

          Comment

          • sumphatpimp
            Confirmed User
            • Aug 2002
            • 5235

            #6
            yes
            .htaccess is one of the very first things i learned.
            shouldn't be a problem for anyone, there are plenty of tutorials all over the interweb net thingy.

            Comment

            • Vendzilla
              Biker Gnome
              • Mar 2004
              • 23200

              #7
              http://www.htaccesstools.com/ makes it easy
              Carbon is not the problem, it makes up 0.041% of our atmosphere , 95% of that is from Volcanos and decomposing plants and stuff. So people in the US are responsible for 13% of the carbon in the atmosphere which 95% is not from Humans, like cars and trucks and stuff and they want to spend trillions to fix it while Solar Panel plants are powered by coal plants
              think about that

              Comment

              • Jace
                FBOP Class Of 2013
                • Jan 2004
                • 35562

                #8
                Originally posted by GrouchyAdmin
                A quick note: Using .htaccess instead of server rules causes extra file, and rule lookups for each request, which will eventually cause a slowdown, and it won't work if AuthConfig is not set to Override. (The former is incredibly common with virtualhosts; it makes the admin's job easier.)

                It's a quick way to make changes if you do not have access to your webserver's configuration, but if you do, there are better ways to set it up, such as in the webserver config file for that host.

                Always wrap your statements properly.

                Putting: RewriteEngine On in your .htacess is not as safe as:

                <IfModule mod_rewrite.c>
                RewriteEngine On
                </IfModule>

                In case if someone screws up on a webserver upgrade, the above will say 'Ok, so, rewrite isn't here, but we can deal with that.' The former will cause a 500 error, and your site will be down until someone notifies the administration that something bad happened.

                ...end of hijack.

                don't try and educate chaze....LOL...pointless

                can't forget, his host cancels people for starting too many blogs

                Comment

                • aztecboi2003
                  Confirmed User
                  • Aug 2006
                  • 1155

                  #9
                  I have no clue of how to use it. Wish I did though, seems like it could be useful.
                  Smoking Girl Fetish
                  Petite Ashley

                  Comment

                  Working...