.htaccess File Generator

Generate text to write into .htaccess from various options

Processing...

Features

Covers 10 types of settings

Generate major settings from URL normalization to security on one screen

Generate only the items you need

Toggle each section's switch to output only the directives you need

Creates .htpasswd at the same time

Also generates a hashed password for Basic authentication

Automatic regular-expression escaping

Safely and automatically converts special characters in domains and extensions

How to use

1

Enable the settings you use

Turn on the switch for the sections you need, such as URL normalization or cache control

2

Enter the value for each item

Fill in each input field with the domain name, redirect target, target extensions, and so on

3

Press the generate button

Press the generate button and the directives for the enabled sections appear in the result field

4

Save and place the result

Save it as a file by copying or downloading, then place it on the server

Use cases

Unifying the site to HTTPS

Resolve duplicate URLs by normalizing http to https and the presence or absence of www

Redirecting moved pages

Write a 301 redirect from the old URL to the new URL to preserve SEO evaluation

Speeding up display

Reduce transfer volume with browser cache and Gzip compression to improve loading

Restricting access to the admin screen

Prevent intrusion into specific directories with Basic authentication or IP control

Preventing image hotlinking

Block image references from outside allowed domains to curb unauthorized bandwidth use

Safety and Privacy

Runs entirely in your browser

Your input data is processed only within your browser and is never sent externally.

Processing only in your browser

generating configuration files is processed entirely within your browser, and input data is not sent to any server.

Communications encrypted with HTTPS

Page loading is also encrypted by TLS, and content cannot be read by third parties.

No transmission to third parties

Input content is not sent to external services such as ad networks or trackers.

No automatic saving of results

domain names and passwords and input suggestions are not stored on the server.