Rewrite rule groups, or rewrite rule sets if you prefer, are declared like sed style substitution.
In the 'Replace' input box you give a regular expression that will be replaced with the string you've set into the 'with' input box. For example:
Replace : .*\.olddomain\.com with : www\.newdomain\.com
- Select the 'Case insensitive' checkbox if the pattern search must be case insensitive.
- Select the 'Show move temporary' checkbox if you want to makes the redirection visible to the user with a HTTP code 302 - Moved Temporarily.
- Select the 'Show move permanently' checkbox if you want to makes the redirection visible to the user with a HTTP code 301 - Moved Permanently.
The default is to make Squid silently fetch the alternate URL.
Time constraints on rewrite groups can be used to make these groups functional within or outside a given time space only;