Wusage 7.1 Manual: rewrite

You are looking at the manual for Wusage 7.1. This product is three years old! Check out Wusage 8.0 and its remarkable new features.

Wusage 7.1 Manual

rewrite Option

To reach this option in the configuration file editor, follow these steps:

1. Edit Configuration
2. Configure Filters...
3. Rewrite Rules...

If you prefer to manually edit your configuration files, use the following syntax for this option:

#Rewrite URLs beginning with an old pathname. The new version
#begins with a different pathname and ends with the remainder
#of the original path. This allows many different document URLs
#to be rewritten using a single rule.
url /oldpath* /newpath\1


Frequently documents will move from one directory to another, or from one server to another, resulting in two copies of the same document which would ideally be counted as the same document. The Rewrite Rules (rewrite) option makes it possible to handle this situation and many similar situations affecting document names as well as other log entry fields.

The Rewrite Rules (rewrite) option uses the same set of pattern and regular expression matching features used by many other options, with the addition of "rewrite rules" that allow items matched by * in patterns (or by ( and ) in regular expressions) to be inserted as part of the rewritten document name or other log entry field. See the Patterns and Regular Expressions section for more information. To insert the first such item in the rewrite rule, use the syntax \1. To insert the second such item, use the syntax \2, and so on.

The following fields can be rewritten using the Rewrite Rules (rewrite) option:

Table of Contents
Topical Configuration Editor Reference
Alphabetical Configuration Editor Reference
Alphabetical Configuration File Reference
Glossary of Frequently Used Terms

Contact Us