SAYF & CO.TOOLS
Free audit

.htaccess Redirect Generator

Generate .htaccess rules for 301 redirects, HTTPS and www.

Free Private — runs in your browser No sign-up

About the .htaccess Redirect Generator

Create Apache .htaccess rules without memorising the syntax: 301 and 302 page redirects, moving a whole domain, forcing HTTPS, adding or removing www, removing .html or .php extensions and custom error pages.

How to use it

  1. Choose the rules you need and fill in the details.
  2. Copy the generated code.
  3. Paste it at the top of the .htaccess file in your site's root folder and test.
  • Free, no sign-up
  • Runs in your browser — private
  • Works on mobile and desktop

Frequently asked questions

Is the .htaccess Redirect Generator free?

Yes. The .htaccess Redirect Generator is completely free to use, with no sign-up or usage limits beyond fair-use protection.

Is my data private?

This tool runs entirely in your browser — nothing you enter is uploaded or stored on our servers.

Will this work on my host?

It works on any Apache or LiteSpeed server with mod_rewrite enabled, which includes most shared hosts. Nginx servers do not use .htaccess files. Always back up your current .htaccess first.

Sayf & Co.

Tools find the problems. We fix them.

Get a free audit of your website, search presence and social channels — with a clear, prioritised plan to grow.

Get your free audit