FREE TOOL

.htaccess redirect generator

Tick the rules you need, add the old and new addresses, and paste the result into .htaccess.

One per line: old path, a space, new path or full URL.

WHAT IT DOES

About this tool

Generate Apache .htaccess rules: force HTTPS, pick www or non-www, handle trailing slashes, add single 301 redirects or move a whole domain. Includes a Cloudflare-safe option.

Everything runs right in your browser: your text and files are never uploaded or stored.

QUESTIONS

Frequently asked questions

My site is behind Cloudflare. Will "Force HTTPS" cause a loop?

It can, if Cloudflare connects to your server over plain HTTP ("Flexible" SSL). Turn on the "My site is behind Cloudflare" option, and the rule reads the visitor's real scheme from the CF-Visitor header. Even better: enable Always Use HTTPS in Cloudflare and skip this rule.

Where do I put these rules?

In the .htaccess file in your site's root folder, above any existing WordPress block (# BEGIN WordPress). Keep a copy of the old file: a single typo in .htaccess turns the whole site into a 500 error.

Does this work on nginx?

No. Only Apache and LiteSpeed read .htaccess. On nginx, the same redirects go in the server block using return 301.

06 / LET'S GET ACQUAINTED

TELL US
WHAT YOUR
BUSINESS NEEDS

Describe the task. Together we'll
work out the next step.

Or message us on Telegram ↗
What are you interested in?

We'll reply to the contact you provide.