Redirect Rule Generator

Generate 301 and 302 redirect rules for Apache .htaccess, NGINX, and Cloudflare.

Processing Architecture: Client-Side (Processed locally in your web browser with zero server uploads)

How to Use Redirect Rule Generator

  1. Step 1: Choose Web Server

    Select Apache (.htaccess), NGINX, or IIS web.config.

  2. Step 2: Define Source & Target

    Enter old path (e.g. /old-page) and new destination (e.g. /new-page).

  3. Step 3: Copy Server Config

    Paste the generated directive into your server configuration file.

Key Features & Capabilities

  • Supports 301 (Permanent), 302 (Found/Temporary), and 307 redirect status codes
  • Generates Apache Redirect 301, RewriteRule, and NGINX return/rewrite directives
  • Regex wildcard matching support

Frequently Asked Questions

When should I use a 301 redirect?

Use a 301 Permanent Redirect whenever a page has permanently moved to pass 95%+ of link ranking equity to the new URL.

What is the difference between a 301 and 302 redirect?

A 301 is permanent and passes search ranking credit to the target URL, whereas a 302 is temporary and tells search engines to keep indexing the old URL.

Related Tools