Back to Tools

Free .htaccess Generator

The Free .htaccess File Generator will take inputs to produce a .htaccess file you can upload to your website.

The .htaccess is a file that can be placed in any directory of your website (normally the root directory) to give the Apache Web Server instructions such as how to respond to particular requests.


Error Documents




IP Deny/Allow



Allow All IPs Except..

Seperate each IP by a new line.

Deny All IPs Except..

Seperate each IP by a new line.


Directory Index

Sets the index pages for directories. Seperate each index name or file type by a new line.


Directory Listings


If you enabled directory listings but wish to hide certain files or file types, enter them below seperated by a new line


Additional Options





Your Generated Htaccess File