Generate redirect rules free: Apache .htaccess, Nginx, Netlify and JavaScript. Enter the old and new URLs, pick 301 or 302, and copy the ready-to-paste rule.
Enter the old URL and where it should point now, choose 301 (permanent) or 302 (temporary), and pick your platform. The tool generates the exact rule for Apache .htaccess, Nginx, Netlify _redirects, JavaScript, or an HTML meta refresh, ready to copy and paste. The source URL is normalized to its path automatically.
Use 301 when a page has moved permanently: search engines transfer ranking signals to the new URL. Use 302 for temporary moves like maintenance or A/B tests. Server-side redirects (Apache, Nginx) are best for SEO; JavaScript and meta refresh are fallbacks when you cannot touch the server.