February 2018
Beginner to intermediate
348 pages
9h 40m
English
The Rewrite module provides you with a set of directives that do more than just rewriting a URI. The following table describes these directives, along with the context in which they can be employed:
|
Directive |
Description |
|
rewrite Context: server, location, if |
As discussed previously, the rewrite directive allows you to rewrite the URI of the current request, thus resetting the treatment of the said request. Syntax: rewrite regexp replacement [flag]; Where regexp is the regular expression, the URI should match in order for the replacement to apply. Flag may take one of the following values:
|