Redirect URL (Map Local, Map Remote)


Redirect URL (Map Remote & Map Local)

Redirect Rule helps in changing the HTTP Requests location to a new destination as per the configured rule, so that the response is transparently served from the new location as if that was the original request.

Configuring Rule

notion image
  1. Source Condition: Source condition is where you set criteria for which requests will match the. You can use URL, Host or Path with Regex, Contains, Wildcard or Equals to match the source request. Learn more about source conditions here.
  1. Destination URL: The destination to which the users will be redirected to based on the source condition.
  1. Source Filters: You can define advanced targeting conditions and restrict rules to be applied on specific request types, request methods, or request payload. Learn more about source filters here.


Video preview

Testing Rule

  • To test if the rule is properly configured or not, use the Test this Rule feature in the bottom of the Rule Editor. This can help you verify if the source conditions are matching to the URL you want to test or not.
notion image

Popular use cases

  • Redirect Production to Local Environment: Map your production scripts or APIs to your local running code and test your local code directly on production sites without deployment. Here's an article with more explanation.
  • Redirect to local System files (Map Local): With Map Local feature, you can directly replace the production scripts with the local files. Any change in the local files will be instantly reflected on production. You can find more details here.
  • Test API version changes: Suppose there is a new version of some API which you are using. To test the backward compatibility of the API, you can just set up a redirect rule to redirect all URLs from the older version to the newer version and check if your application behaves as expected. This way, you don't need to change a single line of your code and test the API upgrades.
  • Fix Broken URLs, Redirect dead bookmarks, and Create URL shortcuts: You can setup a redirect rule to fix some broken URLs, redirect the dead bookmarks to new working bookmarks and create URL shortcuts.
  • Swap Tag Manager scripts from production to staging/dev environment: Test your dev implementation in tag manager scripts like Adobe DTM, Tealium Tag, Google Tag Manager Containers before pushing them live on client websites. Learn more here.



Check if Rule executed or not?
Use this guide to check if the rule executed or not.
Can I redirect https URL to http URLs?
Yes, Redirect Rule supports redirecting from https to http and vice-versa.
Can it redirect to a local file?
Right now this is not possible in Browser Extension. But you can use our desktop app to redirect to a local file (Map Local).