.htaccess Generator

Configuration

Custom Error Pages
Force HTTPS

Forces all visitors to use the secure HTTPS protocol by redirecting HTTP requests.

WWW Redirect

Choose whether to enforce www or non-www version of your domain for consistency.

Domain Redirect
URL Rewrites

Create 301 redirects from old URLs to new ones. Useful for maintaining SEO when restructuring your site.

Browser Caching
Compression
Security Headers
File Access Protection
Directory Listing

Prevents visitors from viewing directory contents when no index file is present. Recommended for security.

Hotlink Protection

Generated .htaccess

# Generated by .htaccess Generator

# Disable Directory Listing
Options -Indexes