How to use 301 Redirect Generator (Apache & Nginx)
- Choose Apache/LiteSpeed or Nginx and the redirect type.
- Enter one line per redirect: old path | new path or full URL.
- Copy the rules into your server configuration.
Supported features and limitations
Rules match the old path exactly (query strings are not part of the match). Back up your configuration first, avoid redirect chains and loops, and test every rule. Nginx rules go inside a server block, then reload Nginx.
Privacy
Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.
Frequently asked questions
301 or 302?
Use 301 (or 308) for permanent moves and 302 (or 307) for temporary ones.
Will redirects keep my rankings?
Permanent redirects help pass signals to the new URL, but nothing is guaranteed.
Related tools
- .htaccess Generator - Generate .htaccess rules for HTTPS, www or non-www redirects, a custom 404 page, compression and directory listing.
- HTTP Status Code Reference - Search a quick reference of common HTTP status codes with plain-English meanings.
- Robots.txt Generator - Create a robots.txt file with allow or block rules, disallowed paths and your sitemap URL.
- XML Sitemap Generator - Build a valid XML sitemap from a list of URLs, with an optional lastmod date.
- SERP Snippet Preview & Meta Length Checker - Preview how a title and meta description may look in Google results and check their length in characters and pixels.
- Keyword Density Checker - Find the most repeated words and two- or three-word phrases in your content with counts and density percentages.