⚙️

.htaccess Validator — Apache Rule Checker

Lint Apache .htaccess files for syntax errors, unclosed block tags, and common misconfigurations. Detects RewriteRule issues, invalid status codes, deprecated access directives, and unclosed IfModule blocks. Free and runs entirely in your browser.

ValidatorsDevOps & Infrastructure
Loading tool...

How to Use .htaccess Validator — Apache Rule Checker

How to Use .htaccess Validator

Step 1: Paste Your .htaccess Content

Copy the full content of your .htaccess file and paste it into the input field. You can also load one of the built-in examples.

Step 2: Click Validate .htaccess

The tool checks:

  • Unclosed block tags — <IfModule>, <Files>, <FilesMatch>, <Directory>, etc. must be properly closed
  • RewriteEngine missing — RewriteRule and RewriteCond require RewriteEngine On to take effect
  • Invalid status codes — ErrorDocument must use a valid 4xx or 5xx HTTP code; Redirect codes must be 301, 302, 303, 307, or 308
  • Deprecated directives — Order, Allow, and Deny are deprecated in Apache 2.4+ in favour of Require
  • RewriteRule flag codes — validates [R=xxx] redirect codes in rule flags
  • Unknown directives — flags unrecognised directive names that may be typos

Step 3: Review Results

Stats grid — line count, directive count, block sections, rewrite rules, redirects, and headers at a glance.

Errors — issues that will cause rules to fail or Apache to reject the file.

Warnings — non-breaking issues like deprecated directives or unusual patterns.

Block Sections — all detected <IfModule>, <Files>, and other container blocks with their arguments.

Rewrite Rules & Conditions — all RewriteRule and RewriteCond lines for review.

Tips

  • Always place RewriteEngine On before any RewriteRule or RewriteCond directive
  • Every opening <IfModule> must have a matching </IfModule> on its own line
  • Test .htaccess changes on a staging server — a syntax error can take down your entire site
  • Use php_value and php_flag only if PHP runs as an Apache module (not FPM or CGI)
  • Avoid Order/Allow/Deny in Apache 2.4+ — use Require all denied or Require all granted instead

Frequently Asked Questions

Most Viewed Tools

📺

Screen Size Converter — Diagonal Dimension Tool

7,957 views

Calculate screen width and height from diagonal size and aspect ratio. Convert between inches and centimeters for displays, TVs, and monitors with instant dimension calculations.

Use Tool →
🖨️

DPI Calculator — Print Resolution Tool

6,244 views

Calculate DPI (dots per inch), image dimensions, and print sizes. Convert between pixels and physical dimensions for printing and displays.

Use Tool →
⏱️

Seconds to Time Converter — HH:MM:SS Formatter

4,480 views

Convert seconds to HH:MM:SS time format instantly with precise calculations and easy-to-read formatting.

Use Tool →
🔐

TOTP Code Generator — 2FA Testing Tool

4,088 views

Generate time-based one-time passwords from a TOTP secret key. Enter your base32 secret, choose a period and digit length, and get the current and next codes with a live countdown timer. Useful for testing and debugging 2FA integrations.

Use Tool →
🔑

Password Entropy Calculator — Crack Time Estimator

4,075 views

Calculate the information-theoretic bit entropy of any password or API key. Detects character set pools automatically, shows the total number of possible combinations, and estimates crack time across five attack scenarios from rate-limited web logins to GPU cracking clusters.

Use Tool →
{}

JSONL Formatter — Line-by-Line Validator

3,924 views

Format, validate, and inspect JSON Lines (JSONL) and NDJSON files. Validates each line individually, reports parse errors by line number, outputs compact JSONL or a pretty-print preview, and lets you download the cleaned file.

Use Tool →
🔐

TLS Cipher Suite Checker — Strength Analyzer

3,767 views

Check TLS protocol version compatibility and cipher suite strength ratings against current best practices. Supports IANA and OpenSSL cipher names — rates each suite as Strong, Weak, or Deprecated and explains why.

Use Tool →
{ }

JSON to Zod — Schema Generator

3,737 views

Generate Zod validation schema code from a JSON sample object. Infers z.string(), z.number(), z.boolean(), z.array(), z.object(), and z.null() types automatically. Handles nested objects, arrays of objects with optional field detection, and outputs copy-ready TypeScript with import and z.infer type alias.

Use Tool →

Related DevOps & Infrastructure Tools

🔐

SSL Certificate Decoder — Expiry & SAN Inspector

Decode X.509 SSL/TLS certificates and RSA private keys in your browser. View subject, issuer, SANs, validity dates, key type, serial number, and SHA-256/SHA-1 fingerprints. Optionally check if a certificate and private key match.

Use Tool →
📄

MIME Type Finder — File Extension Lookup

Find MIME type for file extensions instantly. Look up media types for images, videos, documents, and more.

Use Tool →
⚙️

GitHub Actions Validator — Workflow Syntax & CI/CD Security Audit

Validate GitHub Actions workflow YAML for syntax errors, missing required fields, deprecated commands, mutable action refs, outdated action versions, and broken job dependencies. Get per-job results with fix hints in real time.

Use Tool →
🗺️

Sitemap Validator — XML Sitemap Checker

Validate XML sitemaps against the sitemap protocol specification. Checks structure, required fields, URL count, changefreq values, and priority ranges. Supports both URL sitemaps and sitemap index files. Free and runs entirely in your browser.

Use Tool →
🏷️

AWS ARN Parser & Validator — Deconstruct ARNs and Generate IAM Snippets

Paste an AWS ARN to extract and display account/region/service/resource components in a structured view

Use Tool →
📋

API Response Formatter — JSON Pretty Printer

Format and beautify API responses for better readability. JSON formatter with minify and prettify options.

Use Tool →
🌐

CIDR Calculator — IPv4 Subnet & Network Range Mapper

Calculate subnet ranges, usable host counts, broadcast addresses, and subnet masks from CIDR notation. Shows network and host addresses in both decimal and binary with color-coded bit visualization.

Use Tool →
🔒

SSL Certificate Validator — Chain & Expiry Checker

Paste a PEM certificate to instantly validate expiry, signature algorithm, key strength, SAN presence, and trust chain. Get a clear pass/warn/fail report for each check.

Use Tool →

Share Your Feedback

Help us improve this tool by sharing your experience

We will only use this to follow up on your feedback