.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.
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 Onto 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, andDenyare deprecated in Apache 2.4+ in favour ofRequire - 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 Onbefore anyRewriteRuleorRewriteConddirective - Every opening
<IfModule>must have a matching</IfModule>on its own line - Test
.htaccesschanges on a staging server — a syntax error can take down your entire site - Use
php_valueandphp_flagonly if PHP runs as an Apache module (not FPM or CGI) - Avoid
Order/Allow/Denyin Apache 2.4+ — useRequire all deniedorRequire all grantedinstead
Frequently Asked Questions
Most Viewed Tools
Screen Size Converter — Diagonal Dimension Tool
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
Calculate DPI (dots per inch), image dimensions, and print sizes. Convert between pixels and physical dimensions for printing and displays.
Use Tool →TOTP Code Generator — 2FA Testing Tool
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
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
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 →JSON to Zod — Schema Generator
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 →Seconds to Time Converter — HH:MM:SS Formatter
Convert seconds to HH:MM:SS time format instantly with precise calculations and easy-to-read formatting.
Use Tool →TLS Cipher Suite Checker — Strength Analyzer
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 →Related DevOps & Infrastructure Tools
Systemd Service Generator — Scaffold, Harden, and Validate Unit Files
Fill in service parameters and generate a ready-to-install systemd unit file for Linux daemons
Use Tool →Port Number Lookup — Common TCP/UDP Service & Protocol Database
Searchable reference for 80+ well-known TCP and UDP ports. Look up any port number or service name to see the official protocol, service description, port range (well-known/registered), and security recommendations for risky ports.
Use Tool →Helm Values Builder — Scaffold, Validate, and Export Helm values.yaml
Configure common Helm chart parameters and generate a values.yaml override file for deployments
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 →Makefile Target Generator — Scaffold, Validate, and Self-Document Makefiles
Define make target names and commands and dependencies to generate a formatted Makefile with PHONY targets
Use Tool →AWS S3 CORS Generator — Build, Audit, and Export S3 CORS Policies
Configure allowed origins/methods/headers and generate the S3 bucket CORS JSON policy
Use Tool →Dockerfile Linter — Optimize & Secure Your Container Builds
Lint Dockerfile instructions for best practices, security issues, and layer optimization. Flags unpinned base images, root user, ADD vs COPY, apt-get mistakes, shell-form CMD, and more — with fix guidance for each issue.
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 →Share Your Feedback
Help us improve this tool by sharing your experience