.htaccess and .htpasswd Generator

Select your options and generate your .htaccess and your .htpasswd files!

Rewrite to WWW

Domain name

Redirect 301 File or Directory

Old file path
New file path

Old directory path
New directoty path

Caching JavaScript, CSS and Images

File extensions
Cache duration
Public Private
Must revalidate

Password Protect File

File name
.htpasswd file path

.htpasswd Generator

Username
Password

Prevent Hotlinking

Referring URL
File extension
No hotlinking image

Custom Error Pages

Error 400 file path
Error 401file path
Error 403 file path
Error 404 file path
Error 500 file path
Error file path

Block or Allow IPs

Block these IPs
Allow these IPs

Block Bots

Enable

Change Default Directory Page

Directory page

Prevent Viewing of .htaccess File

Enable

Prevent Directory Listing

Enable

go top