.htaccess Generator

Write redirects, HTTPS rules and caching headers for Apache.

.htaccess Generator

What it does

Writes the rules of an .htaccess file for Apache: redirects, forcing HTTPS, removing www and caching headers. It saves looking up rewrite syntax when you move pages or set up a site. You get a file to put in the root folder of the site.

About the .htaccess format

.HTACCESS file extension
File Type
Apache HTACCESS File
Developer
Apache Software Foundation
Category
Web Files
MIME
text/plain

.htaccess Generator questions

How do I use the .htaccess Generator?

Enter the values in the fields of the tool and read the result below them.

Does renaming a file to .htaccess change its format?

No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .htaccess page lists programs and converters for it.