htaccess Generator

Generate common Apache .htaccess rules and configurations.

Back to Tools
Configuration Options
Redirects
Security
Performance
URL Rewriting
Custom Redirect
Generated .htaccess
# Generated by L2CONTROLHUB
# https://localhost/tools/htaccess-generator

# Disable directory listing
Options -Indexes
How to Use
  1. Select the options you need from the left panel
  2. Copy or download the generated .htaccess content
  3. Place the .htaccess file in your website's root directory
  4. Make sure Apache mod_rewrite is enabled