BBuildQuill
SEO Tools

Redirect Generator

Generate .htaccess, Nginx, and meta tag redirect rules for 301 and 302 redirects.

Redirect #1

Permanent redirect - passes SEO value

RewriteEngine On

# Redirect /old-page to /new-page
RewriteRule ^old-page$ /new-page [R=301,L]

About .htaccess redirects:

- Place the code in your .htaccess file in the website root

- Requires Apache with mod_rewrite enabled

- Rules are processed top to bottom

How to Use Redirect Generator

1

Enter old and new URLs

Specify the source URL you want to redirect from and the destination URL to redirect to.

2

Choose redirect type and format

Select 301 (permanent) or 302 (temporary) and pick the output format for your server.

3

Copy the redirect code

Copy the generated redirect code and add it to your server configuration or HTML file.

About the Redirect Generator Tool

Generate .htaccess, Nginx, and meta tag redirect rules for 301 and 302 redirects. This free online redirect generator from BuildQuill runs entirely in your browser. No data is sent to any server, keeping your information private. No signup or installation needed.

  • Free to use with no account required
  • Works in all modern browsers
  • All processing happens locally in your browser
  • Part of BuildQuill's seo tools collection

Frequently Asked Questions

What is the difference between a 301 and 302 redirect?
A 301 redirect is permanent and tells search engines to transfer all SEO value to the new URL. A 302 redirect is temporary and keeps the original URL indexed. Use 301 for permanent URL changes and 302 for temporary ones.
Which redirect format should I use?
Use .htaccess redirects for Apache servers, Nginx config for Nginx servers, meta refresh for HTML-only solutions, and JavaScript for client-side redirects. Server-side redirects (htaccess/Nginx) are preferred for SEO.
How do I redirect an entire domain to a new one?
For domain migrations, set the old URL as the domain root (e.g., https://old-domain.com/) and the new URL as the new domain root. Use 301 redirects so search engines transfer all rankings to the new domain.

Related Tools