Free AI visibility report

Get my report

Bulk 301 Redirect Generator

Paste old and new URLs to get 301 redirects for Shopify, Apache, Nginx, Next.js and Vercel, with checks for chains, loops and broken rows.

  • Free, no signup
  • Results in seconds
  • Works for Shopify stores

4 rows. Paste a full URL or just the path, like /old-page.

  1. 1
  2. 2
  3. 3
  4. 4

4 redirects ready to install

Pick your platform below, then copy or download the file.
  • Every row is valid

  • No redirect loops

  • No redirect chains

  • No duplicate old URLs

Export for your platform

shopify-redirects.csv

CSVImport in your Shopify admin
Redirect from,Redirect to
/products/blue-mug,/products/blue-ceramic-mug
/collections/summer-sale,/collections/sale
/pages/about-us,/pages/about
/shop?category=mugs,/collections/mugs
  • 1 row matches a query string

    Shopify's redirects are built for paths. Test these old URLs after importing, and handle any that don't redirect in your theme or an app.

How to install on Shopify

  1. Download the CSV above.
  2. In your Shopify admin, open URL redirects. The quickest way is to search for URL redirects in the admin search bar, because Shopify has moved the page between menus over time.
  3. Choose Import, upload shopify-redirects.csv, check the preview and confirm.
  4. Shopify generally only follows a redirect when nothing is live at the old URL, so delete or rename the old product, collection or page first. Then open a few old URLs to check where they land.

Why redirects decide whether a site move keeps its traffic

Every page that ranks on Google or gets quoted by ChatGPT, Perplexity or Google's AI Overviews is known by its URL. Change the URL without a redirect and that page, its links and its history start again from zero. A 301 redirect tells search engines, AI crawlers and browsers where the page went, so the trust it earned follows it.

Rankings follow the redirect
Google treats a permanent redirect as a strong signal that the new URL should replace the old one. Without it, old URLs return errors, drop out of results, and the links other sites gave you point at nothing.
AI answers need links that work
AI assistants and AI search engines link to specific pages. If the page they learned about now shows an error, they have nothing to cite and may point people to a competitor instead. Redirects keep those references alive while crawlers catch up.
Customers keep their bookmarks
Old links live in emails, social posts, QR codes on packaging and saved bookmarks. A redirect sends those people to the right product or service page instead of an error page that loses the sale.
One hop is faster than three
Chains and loops slow visitors down and waste crawler visits. Pointing every old URL straight at its final page, in a single hop, is what Google recommends and what this tool checks for.

How to use the Bulk 301 Redirect Generator

  1. List your old and new URLs

    Export old URLs from Search Console, your sitemap or your platform, and pair each with its new home. Paste full URLs or paths, or upload a CSV. Header rows and a 301, 302, 307 or 308 type column are picked up automatically.

  2. Fix what the checks find

    Rows with a problem show the reason in red and stay out of the file. Chains, loops, duplicate old URLs and query strings are flagged, and one click collapses every chain into a single hop.

  3. Export for your platform

    Choose Shopify, Apache, Nginx, Next.js or Vercel to get the right file: a Shopify CSV, .htaccess rules, an Nginx snippet, next.config.js or vercel.json, with short install steps for each.

  4. Test, then watch Search Console

    Open a sample of old URLs to confirm they land in one hop. Over the next few weeks, check the Pages report in Search Console as Google swaps the old URLs for the new ones.

Redirects on each platform, compared

The same list of old and new URLs needs a different file on every platform, and query strings are where most hand-written rules go wrong. This is what the generator writes for each one.

PlatformWhere the rules goQuery-string matchingStatus codesWatch out for
ShopifyURL redirects page in the admin, with CSV importBuilt for paths. Test any query-string URLs after importing.Always 301Generally only used when nothing is live at the old URL.
Apache.htaccess file or the virtual host configRewriteCond on %{QUERY_STRING}, matched exactlyAny 3xxOrder matters. Put redirects above your CMS rewrite rules.
Nginxserver block in the site configCompare $request_uri. A location block ignores the query string.Any 3xxRun nginx -t before reloading.
Next.jsredirects() in next.confighas conditions with type query301 or 302 via statusCode, 307 or 308 via permanentTakes effect after a rebuild or restart.
Vercelredirects array in vercel.jsonhas conditions with type query301 to 308Check Vercel's limits for very long lists.

Questions about the Bulk 301 Redirect Generator

Paste your old and new URLs into this generator, one pair per line or as a CSV, choose your platform and download the file. It accepts full URLs or paths, detects header rows and a type column, and flags broken rows, chains and loops before you install anything. On Shopify, import the CSV on the URL redirects page. On Apache, paste the rules into .htaccess. On Nginx, add them to your server block. On Next.js or Vercel, merge them into next.config.js or vercel.json.

301 and 308 mean a page has moved permanently; 302 and 307 mean the move is temporary. Use a permanent redirect when a page has moved for good, because Google treats it as a strong sign to show the new URL. Use a temporary one for short-term changes, like sending a seasonal page elsewhere for a few weeks. The difference within each pair is technical: 307 and 308 tell the browser to repeat the request exactly, including form submissions, while 301 and 302 let it switch to a normal page load. For ordinary page moves, 301 is the safe choice and the one every platform supports.

No. Google has said that 301 and other server-side redirects don't cause a loss of PageRank. What does cost traffic is a sloppy migration: sending many old pages to the homepage instead of their closest match, leaving chains of several hops, or removing redirects too soon. Redirect each old URL to the most relevant new page and keep the redirects in place for the long term. Google's site move guidance suggests keeping them for at least a year.

Download the Shopify CSV from this tool, then import it on the URL redirects page in your Shopify admin. The file uses Shopify's own column names, Redirect from and Redirect to, with paths like /products/old-name. Shopify moves admin pages between menus from time to time, so the quickest way to find it is to search for URL redirects in the admin search bar. Shopify redirects are always permanent, and Shopify generally only follows one when nothing is live at the old URL, so delete or rename the old product or page first. When you change a product handle, Shopify also offers to create the redirect for you.

A redirect chain is when one redirect leads to another, like /old to /newer to /newest. Every hop adds a delay for visitors, and Google's crawler only follows a limited number of hops before it gives up on the URL. Chains usually build up over several redesigns or platform moves. This tool finds them and collapses them, so every old URL points straight at its final page.

Yes, but each platform needs a different rule, which is where many generators go wrong. This tool writes a RewriteCond on the query string for Apache, compares the full request URI for Nginx (a location block ignores query strings), and uses has query conditions for Next.js and Vercel. Apache and Nginx rules match the query string exactly, so the parameters must appear in the same order. Shopify's redirects are built for paths, so test query-string rows after importing.

Usually not. Google tends to treat a redirect to an unrelated page, like the homepage, as a soft 404, so the old page's value doesn't carry over and shoppers land somewhere unhelpful. Send a discontinued product to its replacement, the closest similar product or its collection page. If nothing on the site is a reasonable match, letting the URL return a 404 or 410 is better than a forced redirect.

No. The generator runs entirely in your browser. Your URLs, CSV files and generated rules stay on your device and aren't saved on RankBull's servers.

Redirects protect traffic. New content grows it.

RankBull finds the searches you're missing and publishes pages for them, so a site move is a fresh start instead of a setback.

Exports Shopify's URL redirect CSV, ready to import in your Shopify admin.

Free AI visibility report for your site

Free · no card · verbatim engine answers · graded fixes