rewrite tool
The go url enables you to create guidelines that tweak requests and also reactions as they pass throughCharles. Guidelines like incorporating or changing a header or searchas well as change some text in the feedback physical body.
Rewrite Places
Rewrite sets could be one at a time switched on as well as shut off. Eachcollection contains a list of locations and regulations. The locations pick the requests and also reactions on whichthe rules will certainly work.
Rewrite Guidelines
Eachregulation defines a singular rewrite procedure. The rule might have an effect on the headers, the body system, or aspect of the demand URL; it may operate the request as well as or even the reaction; it may after that describe hunt and substitute or merely change type rewriting.
Type
The type indicates the kind of rewording operation to do. There are 4 different types of rewrite policy styles; header regulations, URL regulations, query parameter policies, and body system procedures. The header and also question specification regulations have an effect on the header fields and inquiry strand criteria respectively; including, tweaking or eliminating headers as well as guidelines. The LINK as well as physical body policies execute discover as well as substitute on the different parts of the URL and on the body system.
Where
Choose where towards apply the rewrite rule; on the ask for, action or each.
Match
The suit industries include the content to matchin the request or even reaction to make a decision whether to fire this guideline. You may additionally leave the label or value blank, or even each, to matchany type of market value. If you leave boththe label and worthfields empty you are going to matchall demands/ feedbacks.
Regex help may be permitted, giving Perl-style regular articulations for your match. If you feature groups in your normal expression they may be used in the suit fields.
The rewrite tool field is actually an exact suit field unless regex is made it possible for, in whichcase it supports predisposed fits. The label area is case-insensitive for eachregex and ordinary matching. The label industry might be disabled if you are actually creating a rewrite policy style that doesn’t demand it.
The value field is a limited fit unless you switchon Suit whole market value throughwhichscenario it is actually a precise suit. The market value area is case-insensitive for bothregex and typical matching for header and also question parameter policies, and case-sensitive for LINK and also body system rules.
New/ Substitute
The new/replace fields consist of the message to include or even switchout in the ask for or response when this guideline is actually fired. Leave rewrite tool either the name or value blank to leave all of them the like the matched label or worth.
If regex help is allowed for the matchyou might reference suit groups utilizing $1, $2 etc.
The behaviour of the name and also market value areas relies on the match. If there is a corresponding suit after that the area functions as a replacement for the matched content, otherwise if the matchis actually blank at that point the fields changes the entire label or even value.
The value field sustains Replace First or even Replace All of modes. The label field regularly runs in replace-first setting if the name suit is actually a regex, or else it is actually a precise suit and switches out the entire name.
The title and also or worthfields may be actually impaired if you are making a rewrite policy type that does not demand all of them.
Recommendations
Rewrite guidelines can be difficult to debug if they are certainly not working as you expect. It is actually usually better to build up a rule slowly withfrequent screening.
Location Matching
Eachsite suit may have process, multitude, slot and also pathway patterns to matchparticular URLs. Locations might include wildcards. Even more aid for producing location matches may be located when you include a brand new place to this rewrite tool.
Debugging
The rewrite tool can be complicated to debug when your rewrite procedure isn’t functioning as counted on. If you possess difficulty attempt including a quite fundamental rule including one that includes a noticeable header, so you can observe whether your regulations are matching the request in any way. Additionally activate Debug in Error Record to obtain some debugging info published in the Error Log accessed coming from the Home window menu in Charles.