25% OFF High Performance Plans — Limited Time! Deal ends in:
00days
:
00hrs
:
00min
:
00sec
Developer Tools

Redirect
Generator

Generate 301/302 redirect rules for Apache .htaccess or Nginx. Build path redirects or apply ready-made HTTPS and www rules — copy and paste.

Apache
Nginx
Force HTTPS
# Apache .htaccess
Redirect 301 /old /new

# Nginx
return 301 /new;
.htaccess

            

Frequently Asked Questions

What is the difference between a 301 and a 302 redirect?
A 301 is permanent — search engines transfer ranking to the new URL and browsers cache it. A 302 is temporary; use it when the move is short-lived and you want to keep the original URL indexed.
Where do I put .htaccess redirect rules?
Place them in the .htaccess file in your site root (or the relevant directory). Apache must have mod_rewrite enabled and AllowOverride All set for that directory.
How do I force HTTPS on Nginx?
Add a server block listening on port 80 that issues return 301 https://$host$request_uri; — exactly what the "Force HTTPS" preset generates here.
Do redirect rules affect SEO?
Yes. Use 301s when consolidating or moving pages so link equity passes to the destination. Avoid redirect chains (A→B→C); point each old URL straight at the final target.

Related Tools

Subnet Calculator Crontab Generator Chmod Calculator

Host It on a VPS You Control

TextraHost plans start at $5.50/mo — full root, your own Apache or Nginx config.

Call Us WhatsApp
Trusted & Certified
HostAdvice Silver — Top 25 Reseller Hosting HostAdvice — Top 25 Offshore Hosting 2026 HostAdvice — Over 99% Uptime 2025 Website Planet Feature Accredited .xyz Registrar tawk.to Partner Green hosting verified by The Green Web Foundation AbuseIPDB Contributor Badge