aioflare

What is Bulk Redirect?

Learn about the redirect feature and how to use it

Bulk Redirect is a feature that allows you to set up URL redirects for Cloudflare zones. This feature is useful when you need to redirect visitors from old URLs to new URLs, set up redirects for multiple zones at once, or manage complex redirect rules.

When to Use Redirect

  • • Redirect visitors from old URLs to new URLs after website migration
  • • Set up redirects for multiple zones at once using templates
  • • Manage complex redirect rules easily

How to Redirect for a Single Zone

Step-by-step guide to set up redirect on one zone

Redirect Steps

  1. Open Zone Card

    On the Zones page, find the zone card for which you want to set up redirect

  2. Click Three Dots Menu

    Click the three dots menu icon (⋯) located at the top right corner of the zone card

  3. Select Redirect

    From the dropdown menu that appears, click the "Redirect" option. Two options will appear: "Use Template" and "Manual Input"

Redirect Methods

Use Template

This method will use the default redirect template built into aioflare. You can choose 1 from several redirect templates you want.

  1. Select a redirect template that suits your needs from the dropdown
  2. If there is no suitable template, you can create your own template in the Configuration tab → Redirect Template
  3. After selecting a template, you must fill in the Zone Destination (for example: https://newzone.com)
  4. Make sure all settings are appropriate for your needs
  5. Click the "Apply Zone" button to apply the redirect

To create a new redirect template, visitRedirect Template Guide

Manual Input

This method allows you to fill in all redirect scripts manually according to your specific needs.

  1. Fill in all fields manually: Status Code, Preserve Query, and Path Suffix
  2. Status Code: Select the redirect status code (301, 302, 307, 308) according to your needs
  3. Preserve Query: Choose whether the query string will be preserved or not
  4. Path Suffix: Set whether the path suffix will be added to the destination URL or not. After all fields are filled, click the "Apply Zone" button

After Applying Redirect

After you click "Apply Zone", the redirect will be applied to the zone. You can delete, edit, or add redirect rules through the Redirect Rule Guide.

How to Bulk Redirect Zones

Guide to redirect multiple zones at once

Bulk Redirect Steps

  1. Go to Zone Page

    Open the Zones page in your dashboard

  2. Click Select Button

    Click the "Select" button located at the top left to enter selection mode

  3. Select Zones

    Select the zones you want to redirect by clicking the checkbox on the zone cards. You can select multiple zones at once

  4. Click Bulk Action

    After selecting zones, a "Bulk Action" button will appear in the floating search bar. Click that button

  5. Select Bulk Redirect

    From the bulk action menu that appears, click the "Bulk Redirect" option. Two options will appear: "Use Template" and "Manual Input"

Bulk Redirect Methods

Use Template

This method uses the default redirect template built into aioflare. The guide is the same as single redirect because aioflare's default templates already use the "{{zone}}" placeholder, so they can be used directly for bulk redirect.

  1. Select a redirect template that suits your needs from the dropdown
  2. Fill in the Zone Destination (for example: https://newzone.com). The template will automatically use the {{zone}} placeholder for each selected zone
  3. Click the "Apply Zone" button to apply the redirect to all selected zones
Manual Input

This method allows you to fill in all redirect scripts manually. Make sure the sources URL includes https://{{zone}}/ so it will automatically replace with the zone name you selected.

  1. Fill in Sources URL with format https://{{zone}}/ (the {{zone}} placeholder will automatically be replaced with the selected zone name)
  2. Fill in the Destination URL according to your needs
  3. Configure Status Redirect Code (301, 302, 307, 308), Query String, and Path Suffix according to your needs
  4. Click the "Apply Zone" button to apply the redirect to all selected zones

Queue System

If the zones you select exceed a certain number, the redirect will automatically be added to the queue. On the queue page, you can click "Start" to begin the redirect process for that job. The queue system ensures all redirects are processed systematically.