301

重定向规则生成

生成 Nginx/Apache 的 301/302 规则

🔒 100% client-side — your data never leaves this page
Redirect Input
Rules
Redirect rules will appear here
🔒 100% client-side

About this tool

根据旧路径与新路径自动生成 Nginx 和 Apache 重定向规则,支持 301、302、307 状态码。适合站点改版、URL 迁移、SEO 权重传递与死链修复场景,避免手写配置语法错误。

Frequently Asked Questions

When should I use 301 vs 302?

Use 301 for permanent moves and SEO transfer, 302 for temporary redirects.

Does this support Nginx and Apache?

Yes. It outputs both Nginx location return and Apache Redirect syntax.

Can this help during website migration?

Yes. It is designed for URL mapping during migration and structural changes.