rewrite tool

The rewrite tool allows you to make guidelines that tweak demands as well as actions as they go throughCharles. Regulations including or transforming a header or even hunt as well as switchout some content in the feedback body.

Rewrite Establishes

Rewrite sets may be independently switched on and shut off. Eachset has a checklist of sites as well as rules. The sites choose the asks for as well as actions on whichthe policies will definitely operate.

Rewrite Rules

Eachregulation describes a singular rewrite procedure. The guideline might influence the headers, the physical body, or parts of the request LINK; it may operate on the demand and or even the response; it might after that determine hunt and change or even just switchout style spinning and rewrite.


The kind specifies the form of rewording procedure to execute. There are four different classifications of rewrite guideline kinds; header guidelines, LINK policies, question criterion regulations, and also body rules. The header and inquiry parameter rules impact the header fields as well as query cord criteria specifically; including, modifying or even removing headers and parameters. The LINK and also body system regulations carry out discover and also change on the various parts of the LINK as well as on the physical body.


Choose where towards be applicable the rewrite regulation; on the demand, action or even each.


The fit fields include the text to matchin the demand or even action to make a decision whether to discharge this guideline. You may additionally leave the name or value blank, or even both, to matchany type of market value. If you leave boththe title and market value fields blank you will definitely matchall demands/ responses.

Regex assistance might be actually made it possible for, providing Perl-style frequent phrases for your fit. If you feature groups in your regular articulation they might be used in the suit industries.

The rewrite tool field is a specific complement industry unless regex is actually allowed, in whichscenario it sustains partial matches. The name field is case-insensitive for eachregex and normal matching. The name industry may be actually disabled if you are creating a rewrite rule style that doesn’t require it.

The value industry is a limited fit unless you switchon Fit whole value throughwhichsituation it is a precise match. The value field is case-insensitive for bothregex and regular matching for header and concern criterion rules, and case-sensitive for LINK as well as physical body rules.

New/ SwitchOut

The new/replace ranges contain the text to incorporate or substitute in the demand or feedback when this rule is fired up. Leave rewrite tool either the title or even worthblank to leave them the same as the matched name or market value.

If regex help is actually allowed for the complement you may reference fit groups utilizing $1, $2 and so on.

The behaviour of the name and also value industries depends upon the suit. If there is an equivalent matchat that point the industry functions as a replacement for the matched text, otherwise if the suit is actually blank after that the fields substitutes the entire title or market value.

The value industry supports Replace First or even Replace All of settings. The name field regularly functions in replace-first mode if the title matchis actually a regex, or else it is actually a precise suit and also replaces the whole label.

The name and also or even value areas may be actually impaired if you are actually making a rewrite policy kind that does not demand them.


Rewrite rules may be toughto debug if they are not functioning as you count on. It is typically most ideal to develop a regulation slowly withregular screening.

Location Matching

Eacharea suit may consist of protocol, multitude, port and also pathway patterns to matchspecific URLs. Places may include wildcards. More help for producing site suits may be actually located when you include a brand-new area to this rewrite tool.


The rewrite tool could be hard to debug when your rewrite function isn’t operating as anticipated. If you have trouble attempt featuring a really general regulation including one that incorporates a noticeable header, therefore you can see whether your rules are matching the demand in all. Additionally activate Debug in Error Record to receive some debugging details printed in the Inaccuracy Log accessed from the Window menu in Charles.

Leave a Reply

You must be logged in to post a comment.