- Type:
Record<string, string>
Keys must match hostnames exactly.
You can’t use wildcards.
{ "dev.example.com": "example.com" },
https://dev.example.com/solutions/voice-search becomes https://example.com/solutions/voice-search.
The crawler extracts records from the rewritten URL and continues from there, not the original.
The mapping doesn’t apply to URLs listed in configuration variables, such as:
The mapping also doesn’t apply to the content extracted from a page.
For example, if you extract text that includes the hostname to be replaced,
the original text is extracted.
Examples
JavaScript