Redirect Code Generator
Generate server-specific redirect rules in seconds. Supports Apache .htaccess, Nginx, WordPress, JavaScript, meta refresh and Cloudflare — with bulk redirect support.
Configuration
Redirect Entries
Generated Code
How to Use This Tool
Choose Server & Redirect Type
Select your server platform (Apache, Nginx, WordPress, etc.) and whether you need a 301 permanent or 302/307 temporary redirect.
Add Your Redirect Rules
Enter source and destination URLs for each redirect. Add as many entries as you need using the "Add Redirect" button.
Copy or Download
Review the generated redirect code, then copy it to your clipboard or download it as a configuration file for your server.
Related tools
Robots.txt Checker
Inspect user-agent groups, test URLs and see which bots are blocked.
Robots.txt Generator
Create a robots.txt with rules for Googlebot, Bingbot and AI crawlers.
XML Sitemap Generator
Turn a list of URLs into a valid, upload-ready sitemap.xml.
Rather have experts fix it? We do this daily.
Our team handles technical SEO, content and AI-search visibility for US businesses. Start with a free audit of your site.