Tool · Runs in your browser
Redirect generator
Tell us what’s moving. We’ll write the diversion signs — for Apache .htaccess, Nginx, PHP or a _redirects file — with notes on where they go and what to watch for.
Test with a 302 first
Browsers cache 301s aggressively — sometimes for months. Use 302 while you check everything works, then switch to 301.
Check it from outside
curl -I https://yoursite.com/old-page shows the raw status and Location. Or trace it here to see every hop.
Which server am I on?
Shared hosting, cPanel, Cloudways or WordPress: probably Apache. VPS or Laravel Forge: often Nginx. Netlify/Cloudflare Pages: _redirects.
Not sure what you need?
Where does .htaccess go?
In the root folder of your website — the same folder as your homepage’s index.php or index.html (often called public_html, www or htdocs). It’s a hidden file, so turn on “show hidden files” in your FTP client or file manager.
My host uses both Apache and Nginx. Which do I pick?
If you can edit .htaccess and it works, pick Apache — many hosts (including Cloudways) put Nginx in front of Apache but still honour .htaccess. Only pick Nginx if you can edit the Nginx config itself.
What order should rules go in?
Most specific first. Individual page redirects, then folder moves, then site-wide rules like HTTPS or trailing slashes, then your CMS’s own rules (e.g. WordPress). Apache stops at the first rule that matches with [L].
Can I redirect thousands of URLs?
Yes. Use the Bulk list. For Apache, a few thousand lines in .htaccess is fine; beyond that, a RewriteMap in the server config is faster. Nginx’s map handles huge lists easily.