.htaccess Redirect Generator

Generate Apache .htaccess redirect and rewrite rules.

Support
Works Offline
Privacy First
No Login
No API

Generated .htaccess

About the .htaccess Redirect Generator

Generate common Apache .htaccess rules: simple 301/302 redirects, RewriteRules, forcing HTTPS, forcing www, and removing trailing slashes — ready to paste into your server config.

Examples

301 redirect

/old-page -> /new-page

Output

Redirect 301 /old-page /new-page

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-07 · Runs entirely in your browser