# phanan/htaccess

✂A collection of useful .htaccess snippets.

Repository: https://github.com/phanan/htaccess
Canonical: https://ross.abutalabs.com/products/htaccess
License: NOASSERTION
License Family: other
Topics: apache, dev-ops, awesome, awesome-list, list, htaccess, snippets, htaccess-snippets
Last push: 2026-03-06T06:31:28+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 70, release rhythm 35, longevity 100
- inputs: {"age_days": 4236, "days_push": 180, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 13181, forks 1287 (observed 2026-08-28T04:11:02.459440+00:00)

## What it is
A curated awesome-list collection of useful Apache .htaccess snippets covering redirects, security, caching, and more. It is reference documentation rather than runnable software, targeting Apache 2.4.

## Use cases
- force https with htaccess
- redirect www to non-www in apache
- disable directory browsing htaccess
- block image hotlinking
- deny access to hidden files htaccess
- apache url rewrite snippets

## When to choose
- you administer Apache sites without access to the main server config
- you need quick copy-paste rules for redirects or access control
- you want a curated reference of common .htaccess patterns

## When to avoid
- you use nginx or another non-Apache web server
- you can edit the main Apache configuration, which is faster and simpler
- you need a tool that generates or validates configs automatically

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation, security, developer-tools
- domain: web-development, awesome-lists, security
- platform: self-hosted
- tags: htaccess, apache, snippets, awesome-list, server-configuration, devops, web-server, linux

## Member repositories
- phanan/htaccess (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:02.459440+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:27.943071+00:00, confidence not recorded.
  - readme: https://github.com/phanan/htaccess (fetched 2026-08-28T04:11:02.459440+00:00, sha cc3621091828)
- Data as of 2026-08-30T08:39:29.467469+00:00.
