Guides
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
- Open Zone Card
On the Zones page, find the zone card for which you want to set up redirect
- Click Three Dots Menu
Click the three dots menu icon (⋯) located at the top right corner of the zone card
- 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.
- Select a redirect template that suits your needs from the dropdown
- If there is no suitable template, you can create your own template in the Configuration tab → Redirect Template
- After selecting a template, you must fill in the Zone Destination (for example: https://newzone.com)
- Make sure all settings are appropriate for your needs
- 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.
- Fill in all fields manually: Status Code, Preserve Query, and Path Suffix
- Status Code: Select the redirect status code (301, 302, 307, 308) according to your needs
- Preserve Query: Choose whether the query string will be preserved or not
- 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
- Go to Zone Page
Open the Zones page in your dashboard
- Click Select Button
Click the "Select" button located at the top left to enter selection mode
- Select Zones
Select the zones you want to redirect by clicking the checkbox on the zone cards. You can select multiple zones at once
- Click Bulk Action
After selecting zones, a "Bulk Action" button will appear in the floating search bar. Click that button
- 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.
- Select a redirect template that suits your needs from the dropdown
- Fill in the Zone Destination (for example: https://newzone.com). The template will automatically use the {{zone}} placeholder for each selected zone
- 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.
- Fill in Sources URL with format https://{{zone}}/ (the {{zone}} placeholder will automatically be replaced with the selected zone name)
- Fill in the Destination URL according to your needs
- Configure Status Redirect Code (301, 302, 307, 308), Query String, and Path Suffix according to your needs
- 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.