Developer

Htaccess Rule Generator

Build .htaccess redirects, rewrites, and basic auth rules.

All tools

Rules

Generated .htaccess

RewriteEngine On

# Force HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

# 301 redirect
RewriteRule ^old-page$ /new-page [R=301,L]

Frequently asked questions

Is Htaccess Rule Generator free to use?
Yes. Htaccess Rule Generator is part of TULAKITO's collection of free browser tools. No signup, no subscription, no usage limits.
Is my data safe with Htaccess Rule Generator?
Yes. Htaccess Rule Generator runs entirely in your browser. Nothing you type, paste, or upload is sent to any server.
Do I need to install anything?
No. Htaccess Rule Generator works directly in your browser on desktop and mobile — no downloads or extensions required.