Home » rewrite tool » rewrite tool

rewrite tool

The all reviews allows you to make policies that modify requests as well as feedbacks as they pass throughCharles. Rules suchas incorporating or even altering a header or even searchand also change some text in the response body.

Rewrite Sets

Rewrite sets could be one at a time switched on as well as shut down. Eachcollection contains a listing of areas as well as rules. The places select the requests as well as responses on whichthe policies will certainly run.

Rewrite Guidelines

Eachpolicy describes a singular rewrite operation. The regulation may affect the headers, the physical body, or even parts of the demand LINK; it may operate on the ask for as well as or the action; it may then specify hunt and change or even merely change type spinning and rewrite.


The type defines the form of rewriting procedure to execute. There are actually 4 different types of rewrite rule styles; header guidelines, LINK regulations, inquiry criterion regulations, and physical body rules. The header and also inquiry criterion rules impact the header fields and query string criteria specifically; incorporating, tweaking or taking out headers as well as criteria. The URL and physical body procedures carry out locate and also replace on the various parts of the LINK and on the physical body.


Choose where towards relate the rewrite policy; on the demand, response or each.


The suit fields have the text to matchin the ask for or even response to make a decision whether to discharge this regulation. You may additionally leave behind the title or even value empty, or each, to matchany sort of worth. If you leave boththe title and also market value fields blank you will definitely matchall requests/ feedbacks.

Regex assistance may be actually permitted, supplying Perl-style normal phrases for your complement. If you include teams in your normal articulation they may be actually used in the complement industries.

The rewrite tool field is a precise fit field unless regex is actually enabled, in whichinstance it supports predisposed matches. The name field is actually case-insensitive for bothregex and also typical matching. The title field may be disabled if you are making a rewrite rule kind that does not need it.

The value area is actually a partial complement unless you switchon Fit entire value throughwhichscenario it is an exact match. The value field is case-insensitive for eachregex and also normal matching for header as well as query parameter rules, and also case-sensitive for URL as well as body system policies.

New/ Replace

The new/replace fields include the text to incorporate or even change in the ask for or reaction when this rule is fired. Leave behind rewrite tool either the name or market value blank to leave all of them the like the matched label or value.

If regex support is actually enabled for the fit you may reference paired teams using $1, $2 etc.

The behavior of the label and also market value areas hinges on the match. If there is actually a corresponding matchafter that the area works as a substitute for the matched content, typically if the matchis empty after that the areas switches out the entire title or worth.

The worthfield supports Replace First or even Replace All methods. The title industry consistently operates in replace-first mode if the label complement is actually a regex, typically it is actually a particular complement and switches out the whole label.

The name and or even value fields might be disabled if you are actually making a rewrite regulation kind that does not need them.


Rewrite rules may be complicated to debug if they are actually certainly not functioning as you anticipate. It is commonly best to accumulate a policy slowly along withfrequent testing.

Location Matching

Eachplace suit might contain protocol, host, port and also pathway patterns to matchdetails URLs. Places might include wildcards. Even more help for producing area suits may be discovered when you include a brand-new place to this rewrite tool.


The rewrite tool can be toughto debug when your rewrite procedure isn’t working as counted on. If you have difficulty try featuring an extremely simple guideline suchas one that adds an evident header, so you can easily find whether your policies are actually matching the request in any way. Also turn on Debug in Error Log to receive some debugging information published in the Mistake Log accessed from the Home window food selection in Charles.