Redirect Generator

Enter a source and destination URL to instantly generate ready-to-use 301 or 302 redirect code for Apache, Nginx, and HTML.

Redirect Settings

Quick Examples

Enter source and destination URLs, then click Generate Redirect Code to see snippets.

Copied!

Summary

Enter a source and destination URL to instantly generate ready-to-use 301 or 302 redirect code for Apache, Nginx, and HTML.

How it works

  1. Enter the source URL or path you want to redirect from.
  2. Enter the full destination URL you want to redirect to.
  3. Choose redirect type: 301 (permanent) or 302 (temporary).
  4. The tool instantly generates snippets for Apache, Nginx, and HTML meta refresh.
  5. Click the copy button next to any snippet to copy it to your clipboard.
  6. Paste the snippet into your server configuration or HTML file.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-29 · Reviewed by Nham Vu