PHPackages                             liquidweb/htaccess-validator-shell - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. liquidweb/htaccess-validator-shell

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

liquidweb/htaccess-validator-shell
==================================

Shell script for linting and validating Apache2 Htaccess files

v0.1.0(5y ago)1750.1k↓100%2[1 issues](https://github.com/liquidweb/htaccess-validator/issues)1MITShell

Since Feb 24Pushed 5y ago9 watchersCompare

[ Source](https://github.com/liquidweb/htaccess-validator)[ Packagist](https://packagist.org/packages/liquidweb/htaccess-validator-shell)[ RSS](/packages/liquidweb-htaccess-validator-shell/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (1)

Htaccess Validator
==================

[](#htaccess-validator)

[Apache Htaccess files](http://httpd.apache.org/docs/current/howto/htaccess.html) can be a double-edged sword: on one hand, site owners can easily add new rewrites, configure headers, and more. On the other hand, one mistake can mean the whole site goes down.

This script aims to solve that problem, enabling changes to validated programmatically. Making changes to a site's `.htaccess` file? Validate your changes before applying them!

> ⚠️ **Using PHP?**
> [Check out this script's companion Composer package](https://github.com/liquidweb/htaccess-validator-php).

Requirements
------------

[](#requirements)

As the package uses Apache2 itself to validate, it must be available within your environment. [The Liquid Web Knowledge Base has instructions for installing Apache on most popular platforms](https://www.liquidweb.com/kb/install-apache-2-ubuntu-18-04/).

Usage
-----

[](#usage)

The `bin/validate-htaccess` script accepts a configuration file for validation:

```
$ bin/validate-htaccess /path/to/some/file.conf
```

The script will return a non-zero exit code if validation errors were detected. [Individual codes are documented in the script's header](bin/validate-htaccess#L15).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1900d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05f4d610f0de13ac1c23825f691fd05f2dd37ae9e8f0483e2dc4f1ca1e2bfb32?d=identicon)[stevegrunwell](/maintainers/stevegrunwell)

![](https://www.gravatar.com/avatar/ad03381f7bd6204bcd73e5d6f4a3e6651664ccfe78af6ec49e48e9e2a8ca3f93?d=identicon)[bswatson](/maintainers/bswatson)

![](https://www.gravatar.com/avatar/ddc28240a5a5ddcabc25aecb2bb12ebf06482fdf553dad28aa15e31958ee3b64?d=identicon)[liquidweb](/maintainers/liquidweb)

---

Top Contributors

[![stevegrunwell](https://avatars.githubusercontent.com/u/233836?v=4)](https://github.com/stevegrunwell "stevegrunwell (11 commits)")[![bswatson](https://avatars.githubusercontent.com/u/303029?v=4)](https://github.com/bswatson "bswatson (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/liquidweb-htaccess-validator-shell/health.svg)

```
[![Health](https://phpackages.com/badges/liquidweb-htaccess-validator-shell/health.svg)](https://phpackages.com/packages/liquidweb-htaccess-validator-shell)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
