Detour Add/Edit
The Add Detour and Edit Detour screens are where you define a single redirect: the URL to match, where to send visitors, the HTTP status, optional scheduling, and (when editing) hit analytics. Use Add Detour from the Detours list for a new rule; open an existing row to edit. The form posts to save the detour; Original URL is also checked via AJAX as you type (duplicate detours and real filesystem files are flagged).
For more information on how the various Detour settings work, be sure to read What Is a Detour?.
Detour hits chart (edit only)
When you are editing an existing detour, a chart area may appear at the top of the page.
- Hit counter disabled: You see a notice that Hit Tracking is off, with a button to enable hit tracking in settings. No chart is shown until the hit counter is enabled.
- Hit counter enabled: A line chart shows how often this detour was used over time. A row of range controls filters what the chart displays:
- Day — Today’s activity (daily buckets).
- 7 Days — The last seven days (daily).
- Month — The last 30 days (daily); this is the default when the page loads.
- Year — The last 12 months (monthly buckets).
- All — All recorded history (monthly buckets).
Switching a range updates the chart title, the time axis, and the data series for that window. If there are no hits in the selected range, a “no data” state is shown instead of the chart. Your last selected range for this detour is remembered in the browser (per detour) for the next visit.
Form fields
Field names below match the posted form controls in the control panel.
original_url— Original URL (This should be the old/existing url). The path or pattern to match (for examplepath/to/page.htmlor wildcard rules). Does not require a leading slash. As you type, the add-on checks whether the URL duplicates another detour or points at a real file on disk.new_url— Detour To. Where to send the request: an internal path, a full external URL, or a wildcard rule. If Allow Trailing Slash is off in settings, trailing slashes are normalized when saving; a note may appear under this field explaining that.detour_method— Redirect Method. The HTTP redirect type, typically 301 (permanent) or 302 (temporary).start_date— Start Date. Optional. The first day this detour should be active (site date format). Leave empty for no start restriction.clear_start_date— Clear Start Date. Checkbox, shown only when a start date is already set. Check and save to remove the start date.end_date— End Date. Optional. The last day this detour should be active. Leave empty for no end date.clear_end_date— Clear End Date. Checkbox, shown only when an end date is already set. Check and save to remove the end date.submit— The Save Detour button (top and bottom of the form). Submits the detour for create or update.