Apache or Nginx
Switch between .htaccess rules and Nginx config with one click, no syntax to memorize.
Build 301 and 302 redirect rules for Apache .htaccess or Nginx, plus presets for HTTPS and www, then copy or download. Free, no signup, nothing uploaded.
Choose Apache .htaccess or Nginx so the output matches what your server expects.
Enter the old path and the new URL for each redirect and set 301 or 302. Turn on presets like force HTTPS or www if you need them.
Copy the generated rules or download the file, then add it to your server config.
Redirects keep links working and pass SEO value when pages move. But the exact syntax is easy to get wrong, Apache uses Redirect and RewriteRule directives, while Nginx uses return and rewrite inside the server block. A small typo can break a whole site.
This generator writes the rules for you. Pick your server, add each old path and the new URL, and choose 301 for a permanent move or 302 for a temporary one. Common needs like forcing HTTPS or adding and removing www are one checkbox each. If you paste a full old URL, it is trimmed to the path automatically.
The output updates live, so you can review it, then copy it or download a ready file. Everything runs in your browser, so nothing about your site is sent anywhere.
Switch between .htaccess rules and Nginx config with one click, no syntax to memorize.
Set each redirect as a permanent 301 or a temporary 302, the right choice for SEO.
Force HTTPS, force www, or remove www with ready-made site-wide rules.
Add as many old-to-new rules as you need, with old full URLs trimmed to a path for you.
Grab the rules with one click or download a .htaccess or .conf file.
The rules update as you type, so you can check them before going live.
More SEO tools you might find useful.
Common questions about redirects.