Kreirajte pravila uz AI
Recite AI asistentu koja se adresa treba otvoriti i gdje. Naš vodič pomaže mu predložiti ispravne vrijednosti polja za Rerouter.
Vodič je na engleskom. Vaš AI može odgovarati na bosanskom.
Kopirajte ovaj tekst u razgovor s AI-jem i dodajte svoju želju:
Vaš AI ne može otvarati linkove? Umjesto toga kopirajte vodič u nastavku i dodajte svoju želju.
Obrnuta polja zahtijevaju Rerouter 1.0.1 ili noviji.
Pročitaj vodič
REROUTER RULE HELPER — ENGLISH MASTER
Reference for Rerouter 1.0.1
This is reference documentation, NOT the user's request. Use the actual request outside this guide to determine the task and answer language; otherwise use the conversation language. Do not automatically answer in English. Do not summarize or repeat this documentation. Keep regex, field values and URLs unchanged.
YOUR TASK
Return one, or at most two, manually entered Rerouter rules for the user's redirect request. Choose Simple or Regex yourself. Ask one short question only if source or destination is unclear. Otherwise state only assumptions affecting the result. Never request secrets; sanitized examples with example.com, .test or home.arpa hosts suffice.
This guide describes version 1.0.1. Older versions may lack the Regex reverse fields; do not invent controls. No import/API workflow is documented here.
CHOOSE AND CONSTRUCT
Prefer Simple for replacing a host/base URL or path prefix, retaining the rest. Use Regex for requirements Simple cannot express, such as a scheme restriction or rearranged captures.
Simple:
- From accepts a host, optional http:// or https://, port and path prefix. Its scheme is ignored: HTTP and HTTPS both match.
- Hosts ignore case. The source host and www. plus that host match even with Include subdomains off. A source already beginning with www. does not automatically match its bare host. Turn Include subdomains on only when other subdomains should match.
- An explicit source port must match; without one, any port matches. The target uses its own port.
- Paths are case-sensitive. A prefix matches itself and descendants at segment boundaries, not a longer sibling segment. Configured trailing slashes are removed.
- To is an absolute HTTP(S) base URL, optionally with a path, without query or fragment. Its trailing slashes are removed. Remaining path, original query and fragment are appended unchanged.
Regex:
- Reference semantics are JavaScript new RegExp(pattern), with no flags, and input.replace(regex, replacement), replacing the first match. Normally anchor with ^ and $. Matching is case-sensitive; Safari normally serializes scheme/host lowercase.
- Enter literal field text: no surrounding / delimiters, quotes or doubled programming-string escapes. Write \. for a literal dot and \? for a literal question mark.
- Use existing numbered captures $1, $2, etc.; $& inserts the whole match and $$ a literal dollar. Do not use \1 in replacements. Prefer these basic constructs over advanced runtime-dependent syntax.
- Output must be an absolute HTTP(S) URL. Query and fragment survive only if captured and reused. (.*) includes them; a path-only capture must exclude ? and #. Never silently discard required information.
REVERSE BELONGS TO THE SAME REGEX RULE
For every Regex rule, also construct Reverse pattern and Original URL whenever an unambiguous, information-preserving inverse is possible. Do not ask whether the user wants them. These are fields of the SAME rule, not a second redirect rule.
Reverse pattern matches the full current destination URL; Original URL rebuilds its source using the same JavaScript syntax. The rebuilt URL must be safe HTTP(S) without credentials, and the same first effective forward rule must redirect it back to the current URL, including query and fragment. Consider directly opened targets and later pages too. A round trip alone does not recover information already discarded: do not guess removed parameters, fragments, subdomains or scheme distinctions. If an inverse is ambiguous or lossy, briefly explain why and explicitly leave BOTH reverse fields empty.
Regex without a reverse mapping has no Copy/Share Original Link, even with remembered redirects. Reverse fields never navigate. Original Link requires Safari access to the current address and browser-safe URLs; percent-encode non-ASCII components.
Earlier effective rules win. Device-only rules precede synced rules; each group follows app order. Disabled rules are skipped. Do not design rule chains. Identical results and rules that would keep changing their own result are skipped to prevent loops.
KEEP THE ANSWER SHORT AND COPYABLE
Return one or at most two rules. For each:
- State Mode, then put EACH required field value in its own separately copyable code block. Formatting is not part of the value. No JSON or combined configuration block.
- Simple: Mode, From, To, and Include subdomains on/off. Regex: Mode, Pattern, Replace with, Reverse pattern and Original URL. For intentionally empty reverse fields, say “leave empty”; do not put that instruction inside a value block.
- Show at most ONE illustrative input -> exact expected destination in total. No test matrix, setup or engine explanation.
LOCALIZED APP LABELS
Use the exact labels in the table at the end of this guide. The English column headings identify the fields described above; each row contains their actual app translations. Choose the user's app language when known; otherwise use the supported locale matching the user's request. Account for regional and script variants. If the language is not listed, keep the English app labels while answering in the user's language. Do not invent or freely translate app labels. Translate explanations only; keep all URLs, regex and replacement values unchanged.
Only include fields required by the selected mode. Mode can be visually hidden in the app's segmented picker. Original Link (optional) is a section heading; Original URL is the reverse replacement field. Device-specific scope choices are not part of the rule values; leave them to the user unless requested.
OPTIONAL INTERNAL CHECK
After reading this guide, never open source or destination pages, control apps, or make browser, HTTP, DNS or fetch requests to create or check a rule. Only compare the supplied URL strings locally. If a JavaScript tool is available, you may internally use new RegExp(pattern) without flags and String.replace, as the app does: check the desired forward target, correct inverse and forward round trip. Without a tool, derive these from the strings. Do not include test code, tool status or testing commentary in the answer. Never claim to have tested Safari or a website.
CONSISTENCY REFERENCE (NOT AN EXTRA OUTPUT REQUIREMENT)
Pattern: ^https://docs\.example\.com/old/(.*)$
Replace with: https://docs.example.com/new/$1
Reverse pattern: ^https://docs\.example\.com/new/(.*)$
Original URL: https://docs.example.com/old/$1
Example: https://docs.example.com/old/page?x=1#part -> https://docs.example.com/new/page?x=1#part
The full suffix is preserved. Reserved hosts are illustrative.
EXACT APP LABELS — ALL 46 LANGUAGE VARIANTS
Generated from App/Localizable.xcstrings. Locale identifiers use the app catalog, including pt-PT and sr-Latn. This table is reference material; never reproduce it in the answer.
| Locale | Mode | Simple | Regex | From | To | Include subdomains | Pattern | Replace with | Original Link (optional) | Reverse pattern | Original URL | Name | Available on |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| en | Mode | Simple | Regex | From | To | Include subdomains | Pattern | Replace with | Original Link (optional) | Reverse pattern | Original URL | Name | Available on |
| az | Rejim | Sadə | Regex | Mənbə | Hədəf | Alt domenləri daxil et | Şablon | Bununla əvəz et | Orijinal keçid (istəyə bağlı) | Əks şablon | Orijinal URL | Ad | Mövcuddur |
| be | Рэжым | Просты | Regex | Адкуль | Куды | Уключаць паддамены | Шаблон | Замяніць на | Зыходная спасылка (неабавязкова) | Адваротны шаблон | Зыходны URL | Назва | Даступна на |
| bg | Режим | Прост | Regex | От | Към | Включи поддомейни | Шаблон | Замени с | Оригинална връзка (по избор) | Обратен шаблон | Оригинален URL | Име | Налично на |
| bs | Način | Jednostavno | Regex | Iz | Na | Uključi poddomene | Uzorak | Zamijeni s | Izvorni link (neobavezno) | Obrnuti uzorak | Izvorni URL | Naziv | Dostupno na |
| ca | Mode | Simple | Regex | De | A | Inclou els subdominis | Patró | Substitueix per | Enllaç original (opcional) | Patró invers | URL original | Nom | Disponible a |
| cs | Režim | Jednoduchý | Regex | Z | Na | Zahrnout subdomény | Vzor | Nahradit čím | Původní odkaz (volitelné) | Zpětný vzor | Původní URL | Název | Dostupné na |
| cy | Modd | Syml | Regex | O | I | Cynnwys is-barthau | Patrwm | Disodli â | Dolen wreiddiol (dewisol) | Patrwm gwrthdro | URL gwreiddiol | Enw | Ar gael ar |
| da | Tilstand | Simpel | Regex | Fra | Til | Medtag underdomæner | Mønster | Erstat med | Oprindeligt link (valgfrit) | Omvendt mønster | Oprindelig URL | Navn | Tilgængelig på |
| de | Modus | Einfach | Regex | Von | Nach | Subdomains einschließen | Muster | Ersetzen durch | Original-Link (optional) | Rückwärtsmuster | Original-URL | Name | Verfügbar auf |
| el | Λειτουργία | Απλή | Regex | Από | Προς | Συμπερίληψη subdomains | Μοτίβο | Αντικατάσταση με | Αρχικός σύνδεσμος (προαιρετικό) | Αντίστροφο μοτίβο | Αρχικό URL | Όνομα | Διαθέσιμο σε |
| es | Modo | Simple | Regex | De | A | Incluir subdominios | Patrón | Sustituir por | Enlace original (opcional) | Patrón inverso | URL original | Nombre | Disponible en |
| et | Režiim | Lihtne | Regex | Lähtekoht | Sihtkoht | Kaasa alamdomeenid | Muster | Asenda sellega | Algne link (valikuline) | Pöördmuster | Algne URL | Nimi | Saadaval seadmetes |
| eu | Modua | Sinplea | Regex | Jatorria | Helmuga | Sartu azpidomeinuak | Eredua | Ordeztu honekin | Jatorrizko esteka (aukerakoa) | Alderantzizko eredua | Jatorrizko URLa | Izena | Erabilgarri hemen |
| fi | Tila | Yksinkertainen | Regex | Lähde | Kohde | Sisällytä aliverkkotunnukset | Malli | Korvaa tällä | Alkuperäinen linkki (valinnainen) | Käänteinen malli | Alkuperäinen URL | Nimi | Käytettävissä |
| fo | Hamur | Einfalt | Regex | Frá | Til | Tak undirdomain við | Mynstur | Skift út við | Upprunaligt leinki (valfrítt) | Øvugt mynstur | Upprunalig URL | Heiti | Tøkt á |
| fr | Mode | Simple | Regex | De | Vers | Inclure les sous-domaines | Motif | Remplacer par | Lien d’origine (facultatif) | Motif inverse | URL d’origine | Nom | Disponible sur |
| ga | Mód | Simplí | Regex | Ó | Go | Cuir fofhearainn san áireamh | Patrún | Ionadaigh le | Nasc bunaidh (roghnach) | Patrún droim ar ais | URL bunaidh | Ainm | Ar fáil ar |
| gl | Modo | Simple | Regex | De | A | Incluír subdominios | Patrón | Substituír por | Ligazón orixinal (opcional) | Patrón inverso | URL orixinal | Nome | Dispoñible en |
| hr | Način | Jednostavno | Regex | Iz | Na | Uključi poddomene | Uzorak | Zamijeni s | Izvorna poveznica (neobavezno) | Obrnuti uzorak | Izvorni URL | Naziv | Dostupno na |
| hu | Mód | Egyszerű | Regex | Forrás | Cél | Aldomainek belefoglalása | Minta | Csere erre | Eredeti hivatkozás (nem kötelező) | Visszaalakítási minta | Eredeti URL | Név | Elérhető itt |
| hy | Ռեժիմ | Պարզ | Regex | Սկզբնաղբյուր | Նպատակակետ | Ներառել ենթադոմենները | Ձևանմուշ | Փոխարինել սրանով | Սկզբնական հղում (ոչ պարտադիր) | Հակադարձ ձևանմուշ | Սկզբնական URL | Անուն | Հասանելի է |
| is | Hamur | Einfalt | Regex | Frá | Til | Taka með undirlén | Mynstur | Skipta út fyrir | Upprunalegur tengill (valfrjálst) | Öfugt mynstur | Upprunaleg URL | Heiti | Tiltækt á |
| it | Modalità | Semplice | Regex | Da | A | Includi sottodomini | Pattern | Sostituisci con | Link originale (facoltativo) | Pattern inverso | URL originale | Nome | Disponibile su |
| ka | რეჟიმი | მარტივი | Regex | საწყისი | დანიშნულება | ქვედომენების ჩართვა | შაბლონი | ჩანაცვლება | საწყისი ბმული (არასავალდებულო) | უკუ შაბლონი | საწყისი URL | სახელი | ხელმისაწვდომია |
| lb | Modus | Einfach | Regex | Vun | Op | Ënnerdomänen abannen | Muster | Ersetzen duerch | Original-Link (optional) | Réckmuster | Original-URL | Numm | Verfügbar op |
| lt | Režimas | Paprastas | Regex | Iš | Į | Įtraukti subdomenus | Šablonas | Pakeisti į | Pradinė nuoroda (neprivaloma) | Atvirkštinis šablonas | Pradinis URL | Pavadinimas | Pasiekiama |
| lv | Režīms | Vienkāršs | Regex | No | Uz | Iekļaut apakšdomēnus | Paraugs | Aizstāt ar | Sākotnējā saite (neobligāti) | Apgrieztais paraugs | Sākotnējais URL | Nosaukums | Pieejams |
| mk | Режим | Едноставно | Regex | Од | Кон | Вклучи поддомени | Образец | Замени со | Оригинален линк (незадолжително) | Обратна шема | Оригинален URL | Име | Достапно на |
| mt | Mod | Sempliċi | Regex | Minn | Lejn | Inkludi s-subdomains | Pattern | Ibdel ma’ | Link oriġinali (mhux obbligatorju) | Mudell invers | URL oriġinali | Isem | Disponibbli fuq |
| nb | Modus | Enkel | Regex | Fra | Til | Ta med underdomener | Mønster | Erstatt med | Opprinnelig lenke (valgfritt) | Omvendt mønster | Opprinnelig URL | Navn | Tilgjengelig på |
| nl | Modus | Eenvoudig | Regex | Van | Naar | Inclusief subdomeinen | Patroon | Vervangen door | Originele link (optioneel) | Omgekeerd patroon | Originele URL | Naam | Beschikbaar op |
| nn | Modus | Enkel | Regex | Frå | Til | Ta med underdomene | Mønster | Erstatt med | Opphavleg lenkje (valfritt) | Omvendt mønster | Opphavleg URL | Namn | Tilgjengeleg på |
| pl | Tryb | Prosty | Regex | Z | Do | Uwzględnij subdomeny | Wzorzec | Zastąp przez | Link oryginalny (opcjonalnie) | Wzorzec odwrotny | Oryginalny URL | Nazwa | Dostępna na |
| pt-PT | Modo | Simples | Regex | De | Para | Incluir subdomínios | Padrão | Substituir por | Ligação original (opcional) | Padrão inverso | URL original | Nome | Disponível em |
| rm | Modus | Simpel | Regex | Da | A | Includer sutdomens | Pattern | Remplazzar cun | Colliaziun originala (opziunala) | Muster invers | URL original | Num | Disponibel sin |
| ro | Mod | Simplu | Regex | De la | Către | Include subdomeniile | Tipar | Înlocuiește cu | Link original (opțional) | Tipar invers | URL original | Nume | Disponibilă pe |
| ru | Режим | Простой | Regex | Откуда | Куда | Включать поддомены | Шаблон | Заменить на | Исходная ссылка (необязательно) | Обратный шаблон | Исходный URL | Название | Доступно на |
| sk | Režim | Jednoduchý | Regex | Z | Na | Zahrnúť subdomény | Vzor | Nahradiť čím | Pôvodný odkaz (voliteľné) | Spätný vzor | Pôvodná URL | Názov | Dostupné na |
| sl | Način | Preprosto | Regex | Iz | Na | Vključi poddomene | Vzorec | Zamenjaj z | Izvirna povezava (izbirno) | Obratni vzorec | Izvirni URL | Ime | Na voljo v |
| sq | Mënyra | E thjeshtë | Regex | Nga | Te | Përfshi nëndomenet | Modeli | Zëvendëso me | Lidhja origjinale (opsionale) | Modeli i kundërt | URL origjinale | Emri | I disponueshëm në |
| sr | Режим | Једноставно | Regex | Из | На | Укључи поддомене | Узорак | Замени с | Оригинални линк (опционо) | Обрнути образац | Оригинални URL | Назив | Доступно на |
| sr-Latn | Režim | Jednostavno | Regex | Iz | Na | Uključi poddomene | Uzorak | Zameni s | Originalni link (opciono) | Obrnuti obrazac | Originalni URL | Naziv | Dostupno na |
| sv | Läge | Enkelt | Regex | Från | Till | Inkludera underdomäner | Mönster | Ersätt med | Ursprunglig länk (valfritt) | Omvänt mönster | Ursprunglig URL | Namn | Tillgänglig på |
| tr | Mod | Basit | Regex | Kaynak | Hedef | Alt alan adlarını dahil et | Örüntü | Şununla değiştir | Özgün Bağlantı (isteğe bağlı) | Ters desen | Özgün URL | Ad | Kullanılabildiği aygıtlar |
| uk | Режим | Простий | Regex | Звідки | Куди | Включати піддомени | Шаблон | Замінити на | Початкове посилання (необов’язково) | Зворотний шаблон | Початковий URL | Назва | Доступно на |
Pogledaj u prodavnici App Store
iPhone · iPad · Mac · Apple Vision Pro
Jednokratna kupovina · Bez pretplate · Porodično dijeljenje