/old-page) or a full URL — only its path is used for the rule.
What are 301 redirects?
A 301 redirect is a permanent, server-level instruction that sends both visitors and search engines from an old URL to a new one. When you rename pages, restructure a site, or migrate to a new domain, 301s preserve the vast majority of the ranking signals (link equity) the old URL earned — and they keep people from hitting dead 404 pages. Getting them right is one of the highest-leverage steps in any Miami site migration.
How to use this generator
Paste one redirect per line as old_url new_url. The two URLs can be separated by a space, a tab, or a comma, so you can copy straight out of a spreadsheet redirect map. The source can be a bare path like /old-page or a full URL — the tool automatically extracts the path for the matching rule and leaves your target exactly as entered. Pick your server format, watch the count update live, then hit Copy and paste the block into your config.
- Apache .htaccess — simple
Redirect 301 /old /newdirectives, ideal for straightforward one-to-one moves. - Apache RewriteRule — anchored, regex-escaped
RewriteRulelines with[R=301,L]flags for use insidemod_rewriteblocks. - Nginx — exact-match
location = /old { return 301 ... ; }blocks that drop into your server configuration.
Apache vs Nginx: which format do I need?
If your hosting runs on Apache (most shared hosting and cPanel setups), use the .htaccess or RewriteRule output. The plain Redirect 301 form is the easiest and works for the majority of page moves; reach for RewriteRule when you need pattern matching or you are already inside a rewrite block. If you run Nginx, paste the location blocks into the relevant server { } context and reload the service. Always test a couple of redirects in a browser or with curl -I before pushing a full migration live.
Redirect old URLs directly to their closest new equivalent — avoid chaining (A→B→C) and never bounce everything to the homepage, which Google can treat as a soft 404. Planning a larger move? Our Miami SEO services team runs full redirect audits, or explore the rest of our free SEO tools.