Bulk redirects
Create redirects in bulk from a CSV file
Upload one CSV file and SiteDetour creates the redirects in it. A file can hold many domains and many path rules per domain. Each row sets the source, the target, the status code, and whether the path and the query string are forwarded.
14 day free trial. No credit card.
- old-brand.comnew-brand.comHTTPS enabled
- shop.old-brand.comnew-brand.com/shopHTTPS enabled
- brand-events.orgnew-brand.com/eventsHTTPS enabled
- getbrand.ionew-brand.com/signupWaiting for DNS
- brand.co.uknew-brand.com/ukHTTPS enabled
Trusted by 500+ institutions
The file
Five columns, one row per rule
The import dialog has a sample file with the header row. Start from it, so the column names match.
source
The address to redirect: a domain, a domain with a path, or a full URL. For example olddomain.com or olddomain.com/pricing.
target
The full URL the visitor is sent to, such as https://newdomain.com/plans.
status_code
301 for a permanent redirect or 302 for a temporary one. An empty cell is imported as 301.
path_forwarding
true or false. When true, the rule matches every address that starts with the source path, and the rest of the path is added to the target.
query_forwarding
true or false. When true, the query string of the request is passed on to the target.
Example
Many domains and paths in one file
Rows are grouped by the domain in the source column. A domain that is new to your account needs one row with no path. That row becomes its default target.
- A row with a path and no path forwarding is an exact match rule
- A row with path forwarding matches every address that starts with the path
- Rows for a domain you already have are added to that redirect
- A row with the same path as an existing rule replaces that rule
source,target,status_code,path_forwarding,query_forwardingolddomain.com/,https://newdomain.com/,301,false,trueolddomain.com/pricing,https://newdomain.com/plans,301,false,trueolddomain.com/blog,https://newdomain.com/journal,301,true,truepromo.example.org/,https://newdomain.com/sale,302,false,trueHow it works
What happens when you import
The file is checked before anything is saved, so a mistake in one row does not leave you with half an import.
1. SiteDetour checks the file
The header row must match the five columns. Every domain must be a valid domain that no other account uses, every target must be a valid URL, and the number of domains must fit your plan.
2. You fix what it reports
Problems are listed with the domain or the target they belong to. Correct the file and upload it again.
3. The redirects are created
New domains appear in your redirect list. Point their DNS at SiteDetour and the HTTPS certificate for each one is issued automatically.
The same CSV import is available through the REST API, and the API can also create and change single redirects.
Read the API documentationOne file for the whole list of redirects, checked before any of it goes live.
After the import
Manage imported redirects like any other
Imported redirects are normal redirects. Edit them in the dashboard, add audiences, read their analytics, and export the whole list back to a CSV file.
- Automatic HTTPS certificate for every imported domain
- 301 and 302 redirects, set per row
- Path forwarding and query string forwarding, set per row
- Hits for every redirect in real time analytics
- An entry in the activity log for each imported domain
Related
Other SiteDetour features
Bulk import is one way to create redirects. These pages cover the rest.
Website migration redirects
Pair old URLs with new ones from two sitemaps, then create the rules in one step.
Learn moreScalable redirect management
Manage URL redirects in a visual interface, with SSL certificates generated automatically.
Learn moreRedirect monitoring
Scheduled checks of DNS, HTTPS, and the final page of every path. Business and Enterprise plans.
Learn moreHow do I create redirects in bulk?
Upload a CSV file on the Redirects page. Each row is one rule with the columns source, target, status_code, path_forwarding, and query_forwarding. SiteDetour checks the file and shows what it found before anything is saved.
Can one CSV file hold more than one domain?
Yes. Rows are grouped by the domain in the source column. One file can create many domains, and each domain can have many path rules. A domain that is new to your account needs one row for the domain with no path, which becomes its default target.
Which redirect status codes can I use in a CSV import?
301 (permanent) and 302 (temporary). If the status_code column is empty, the rule is imported as a 301.
What happens to redirects I already have when I import a file?
Rows for a domain that is already in your account are added to that redirect. A row with the same path as an existing rule replaces that rule. Rules that are not in the file stay as they are.
Import your redirects
Download the sample file, fill in your rows, and upload it. SiteDetour checks the file and creates the redirects.
- 14 day free trial
- No credit card
- No traffic metering