.htaccess Generator
Write redirects, HTTPS rules and caching headers for Apache.
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.htaccess Apache HTACCESS File
Web Files
- File Type
- Apache HTACCESS File
- Developer
- Apache Software Foundation
- Category
- Web Files
- MIME
text/plain
Related tools
More in Developer Generators
UUID Generator
Make random version 4 UUIDs, one or a thousand at a time.
Password Generator
Make random passwords of any length and character set.
Cron Expression Generator
Build a cron line by picking minutes, hours and days.
Chmod Calculator
Turn Unix permissions into 755-style numbers and rwx letters, and back.
robots.txt Generator
Write a robots.txt file with rules for each crawler and a sitemap line.
Meta Tag Generator
Write the title, description and robots tags of a page.
Test Data Generator
Make rows of fake names, addresses, dates and numbers as CSV or JSON.
Random Number Generator
Pick random numbers in a range, with or without repeats.
.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.