JOHLEM

security tools & cheatsheets
← All Tools

.htaccess Generator

Build Apache .htaccess configuration files with a visual interface.

All processing is 100% client-side. Your configuration never leaves your browser.

Security

Security Headers

Redirects

Performance

Error Pages

Custom Rewrite Rules

Add custom RewriteRule directives

Generated .htaccess

# Generated .htaccess

Presets

Common Directives Reference

RewriteEngine On Enables URL rewriting
RewriteCond Condition for rewrite rules
RewriteRule URL pattern matching and rewriting
Options -Indexes Disable directory browsing
Header set Add/modify HTTP headers
ErrorDocument Custom error pages
[L] Last rule - stop processing
[R=301] Permanent redirect