News for hackers. Stuff that matters.
Re:A collection of useful .htaccess snippets by _cudgel on Monday February 09, 2015 @03:18AM (#9020166)
While I think this is a very valuable resource, and patterns are always welcome by me, it should be noted that the Apache docs recommend against using .htaccess files due to the performance penalty.

From the docs (http://httpd.apache.org/docs/current/howto/htaccess.html):

You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance.

Re:A collection of useful .htaccess snippets by theblueprint on Monday February 09, 2015 @08:04AM (#9020928)
PSA: Authorization snippets are based on Apache 2.2 config syntax. Care should be taken to review, update and test Authorization config when upgrading to Apache 2.4 (http://httpd.apache.org/docs/2.4/upgrading.html).
Re:A collection of useful .htaccess snippets by DrStalker on Monday February 09, 2015 @03:53AM (#9020250)
These snippets should all be fine to go straight into a directory block, so it's still a really good resource,
Re:A collection of useful .htaccess snippets by tobltobs on Monday February 09, 2015 @09:43AM (#9021339)
Are you sure this is true also for the Rewrite Rules?
Re:A collection of useful .htaccess snippets by _cudgel on Monday February 09, 2015 @04:27AM (#9020320)
I agree completely!
Re:A collection of useful .htaccess snippets by w8rbt on Monday February 09, 2015 @07:25AM (#9020795)
For some hosting situations, the only control you would have would be through the .htaccess file.