.htaccess Redirect Generator creates common redirect rules for moved pages, canonical URLs, and small site migrations. It gives copyable rules without server-side processing.
Generate common Apache redirect rules for migrations and canonical URLs. Everything runs locally in this tab.
Redirect 301 /old-page https://example.com/new-page
Yes. The tool is free and runs directly in your browser with no account required.
No. The redirect rule is generated locally in the browser tab and is not sent to a server.
Quickly writing a single, correctly formatted 301 redirect rule for an Apache .htaccess file after moving or renaming a page.
A single Redirect 301 line in the form 'Redirect 301 /old-page https://example.com/new-page', which permanently redirects the old path to the new URL.
301 (permanent) is the standard choice for SEO-motivated redirects, since it tells search engines to transfer ranking signals to the new URL. If you need a temporary 302 redirect, change the '301' to '302' in the copied output.
Paste it into the .htaccess file in your site's root directory (or the directory the source path is relative to). Apache reads .htaccess rules on each request, so no server restart is needed.
This tool generates one rule per use. For several redirects, repeat the process and stack the resulting Redirect 301 lines in your .htaccess file.
No — the Redirect directive is specific to Apache's mod_alias. Nginx, IIS, and other servers use different redirect syntax.